question

evets8 avatar image
0 Likes"
evets8 asked

Unable to save - Marketplace account deletion endpoint validation failed. Click here to learn more about setting up an endpoint.

Hi everyone,


I've been trying to wrap my head around how this while verification process works. I set up an Apache server and PHP to accept requests on my web server. eBay front-end is responding with: "Marketplace account deletion endpoint validation failed. Click here to learn more about setting up an endpoint."


I verified with postman that the following works on the endpoint:

GET "https://webservername.duckdns.org/verify.php?challenge_code=aDehf8QnRFVXH8GxBrn94oD7zMPHCus8"

Response: 200 OK

{

"challengeResponse": "4cda6c2bc6eced81e022ec9b73ab978ff48c26f9422907a108ca454cf9ec7546"}


The challenge response is the challenge code, verification token, and endpoint url per eBay documentation. What am I doing wrong?


Below is the PHP script I set up:

<?php


$hash = hash_hmac('sha256', $_GET['challenge_code'] . 'aDehf8QnRFVXH8GxBrn94oD7zMPHCus8' . 'https://webservername.duckdns.org/verify.php', '');

header('Content-Type: application/json');

echo json_encode(['challengeResponse' => $hash]);


?>


Thanks everyone!


Update 1:

Digging around and found some people were having issues with SSL certs. Set up my server to use CertBot and verified that SSL Certs are trusted using SSLLabs.com. eBay is still not accepting my url and token.

marketplace account deletion notification endpointmarketplace_account_deletionmarketplace account deletion endpoint validation failed
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
evets8 avatar image
0 Likes"
evets8 answered

Hope this helps everyone else out there to get this working. I am working in Ubuntu with Apache and PHP installed. Below is the code I used to successfully get this working.

Key things I used:

URL like "https://website.com/directory/"

Certbot for SSL Signed Certs

http response code with "200 OK"


<?php
http_response_code(200);
if(isset($_GET['challenge_code']))
{
$verificationToken = 'ENTER TOKEN HERE';
$endpointURL = 'https://ENTERWEBSERVERHERE.com';
header('Content-Type: application/json'); $d=$_GET['challenge_code'].$verificationToken.$endpointURL; $hd=array("challengeResponse"=>hash("sha256", $d));
echo(json_encode($hd));
} elseif(isset($_POST['challenge_code']))
?>
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.

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.