question

11laurent11 avatar image
0 Likes"
11laurent11 asked

Event Notification Delivery Method : please verify input parameters

Hello all,

I'm trying to implement the Marketplace Account Deletion/Closure Notifications and after entering my endpoint and my verification token, I always get the following error message: please verify input parameters

My end point is up and running and I'm using the code provided by ebay:

<?php
$challengeCode = $_GET["challenge_code"];
$verificationToken = "xxxx";
$endpoint = "yyyy";
$hash = hash_init('sha256');

hash_update($hash, $challengeCode);
hash_update($hash, $verificationToken);
hash_update($hash, $endpoint);

$responseHash = hash_final($hash);
echo $responseHash;
?>

I have checked my logs and I see the request to my url ending up with a http code 200 so everything seems all right but I keep on getting this error message which doesn't tell me anything useful about the problem.

Do you have an idea ?

Thanks

notificaiton
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
arhos-5942 avatar image
0 Likes"
arhos-5942 answered

Maybe it can help you.

if (isset($_GET['challenge_code'])) {
            $verificationToken = "enter your verification token";
            $endpoint = "enter your endpoint URL";
            $challengeCode = $_GET['challenge_code'];
            header('Content-Type: application/json');
            $merging = $challengeCode . $verificationToken . $endpoint;
            $hashData= array("challengeResponse" => hash("sha256", $merging));
            return json_encode($hashData);
        }
· 1
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks for your code. I have tried it but I have exactly the same error message :(
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.