question

sharakamat-0 avatar image
0 Likes"
sharakamat-0 asked

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

Hi,


I am trying to setup deletion/closure notification, but I am getting validation failed error from eBay.

Below is the details can any one help me for this.



Below is the code and issue

public ActionResult<string> ChallengeResponse([FromQuery] string challenge_code)
        {
            try
            {
                string verificationToken = _configuration["eBayVerificationToken"];
                string endpoint = _configuration["eBayNotificationEndPoint"];
                string challengeResponse = string.Empty;
                IncrementalHash sha256 = IncrementalHash.CreateHash(HashAlgorithmName.SHA256);
                sha256.AppendData(Encoding.UTF8.GetBytes(challenge_code));
                sha256.AppendData(Encoding.UTF8.GetBytes(verificationToken));
                sha256.AppendData(Encoding.UTF8.GetBytes(endpoint));
                byte[] bytes = sha256.GetHashAndReset();
                challengeResponse = BitConverter.ToString(bytes).Replace("-", string.Empty).ToLower();
                JObject json = JObject.Parse("{\"challengeResponse\":\"" + challengeResponse + "\"}");
                return Ok(JsonConvert.SerializeObject(json));
            }
            catch (Exception ex)
            {
                return string.Empty;
            }
        }


notificationsmarketplace account deletion notification endpointendpoint
1629804735484.png (71.0 KiB)
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
sharakamat-0 avatar image
0 Likes"
sharakamat-0 answered

Issue solved by setting up custom domain and SSL binding to end point.


Dot net solution:
https://github.com/eBay/eBay-Notification-SDK-Dot-Net-Core

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.