Cannot validate my marketplace account deletion endpoint
I'm am unable to validate my marketplace account deletion endpoint.
My endpoint is using the following code.
$hash = hash_init('sha256');
hash_update($hash, $challengeCode);
hash_update($hash, $verificationToken);
hash_update($hash, $endpoint);
$responseHash = hash_final($hash);
return response()->json(["challengeResponse"=>$responseHash], 200);
Each time to try to validate I get the following error message: "Marketplace account deletion endpoint validation failed. Click here to learn more about setting up an endpoint."
I am able to fit the endpoint in my browser and postman fine.
I see the endpoint in my access log when I manually visit or when I use postman. I don't any other access to that endpoints from ebay.
Does anyone have any suggestions?
4 comments
lyrawill_62
·1 year ago · EditedI had the same issue—eBay’s validation doesn’t seem to hit your endpoint directly, so you won’t see logs from their attempts. Make sure your endpoint responds with the exact expected status and payload immediately on validation requests (usually a simple 200 OK with specific content). Also, check your firewall or security settings aren’t blocking eBay’s IPs. Sometimes adding eBay’s IP ranges to allowlist helps the validation go through.
I hope it helps!
keru_2807
OP2 years agoI finally figured out what was going wrong.
My endpoint was on a https...but I only had the SSL configured with the certificate. I suspected this was the issue since I never saw any traffic from Ebay in my logs and I could only hit the endpoint with Postman if I disabled the SSL verification.
Once I added the chain and restarted the server, Ebay was able to hit the endpoint.
nyg84_74
·1 year agoI'm facing the same issue. How would one go about fixing this ? I don't see any logs that show that eBay was able to hit my endpoint.
keru_2807
OP2 years agoHmm...I thought I editted the code I provided. It's actually more like this: