[Eximbay Gateway] Hosted Payment SDK question

kimjongmin
New Member
4 0 0

Hi,

We are servicing the gateway through the Hosted Payment SDK. 

However, there are some problems, so I leave an inquiry.

 

1. x_url_callback Status

I can't always get "200 HTTP OK" when sending x_url_callback response.

In this case, can I resend the x_url_callback response for order creation?

 

2.  x_result pending/completed

In a test environment, we confirmed that x_result=pending/completed is handled normally.

However, when tested in a production environment, we received a response of "422 Unprocessable Entity: Notification knowledge failed." (x_signatureissue)

So I validated the x_signature creation logic and x_signature sample, but the same value came out. Could I get a "422 Unprocessable Entitlement failed" response due to another problem?

 

I'll be waiting for your answer. Thank you.

0 Likes
CalD
Shopify Staff
Shopify Staff
120 12 17

Hi @kimjongmin,

Take a look at this doc here: https://shopify.dev/docs/hosted-payment-sdk/getting-started 

For #1,  if you don't receive a 200 OK from your asynchronous callback POST to x_url_callback, the following is recommended:

Otherwise up to 5 retries with an interval of at least 60 seconds are recommended.

For #2, check out the FAQ "422 Unprocessable Entity: Notification acknowledgment failed" when sending the response in the link above. It's possible there is an issue with how the signature is being calculated (check out the Signature Calculator Tool), but also possible the incorrect credentials in the Payment settings of the store you're testing on aren't correct.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

kimjongmin
New Member
4 0 0

Thank you. I've been looking forward to hearing from you.

I have an additional question among your answers.

 

1. Is there any other way if HTTP Code is not 200 even when sent for 5 times every 60 seconds?

2. Is there a valid time when calling x_url_callback for the payment result?

3. As given in the answer, I compared the URL (https://offsite-gateway-sim.shopifycloud.com/calculator) with the internally generated x_signature.

However, it does not appear to be the issue as it appears to be generating the same value. 

Please check if "422 Unprocessable Entity: Notification background failed" can occur due to other issues.

 

Shopify x_signature (See Attachment of Shopify x_signature Sample)

e3e81dc0ab1561969903d721d304d9e14be9a818d0ec301f2ab3cb44e33a3007

 

Eximbay Gateway PlainText

x_account_id3474153615x_amount990.00x_currencyKRWx_gateway_reference347415361520210331000003x_messagetestx_reference20332326518831x_resultcompletedx_testfalsex_timestamp2021-03-31T11:06:28Z

 

Eximbay Gateway x_signature

E3E81DC0AB1561969903D721D304D9E14BE9A818D0EC301F2AB3CB44E33A3007

 

Shopify x_signature Sample.png

0 Likes