External payment gateway extension - GraphQL error Payment Failed

Hello everybody.

We are currently facing an issue with an application concerning an external gateway.

After all developments of solution, all tests was done on 4 differents store and all was working.

When reviewing app for submission, we have an issue on the checkout page of Shopify on the store used for review and payment fail. Here is the details :
Request :
{url_store}/checkouts/unstable/graphql?operationName=PollForReceipt
Response :
{
“data”: {
“receipt”: {
“id”: “gid://shopify/ProcessedReceipt/10643700154390”,
“processingError”: {
“code”: “GENERIC_ERROR”,
“messageUntranslated”: “”,
“hasOffsitePaymentMethod”: true,
“__typename”: “PaymentFailed”
},
“__typename”: “FailedReceipt”
}
}
}
On the external app no request received at all (we should have a post request with payment like described here :

But nothing on the app (that was tested and functionnal with 4 other stores…).

Could you tell me please how fix this issue and have more informations on request and response sent by this call ?

Hey @Kevin_Gleizes :waving_hand: - hopefully I’m understanding correctly, but is the error only popping up when a user is trying to pay for an order through the checkout page on a storefront and are you pulling the error message from your Chrome/browser dev tools by any chance?

If you are, could you look at the headers section of your Dev Tool’s network tab and share an X-Request-ID if you see one there? I can use that to take a look at our logs to see if we can identify what’s causing the error. That section should look like this:

Hope to hear from you soon - happy to dig into this for sure!

Hello Alan, first of all thank you for your response.

Here is the last X-Request-id i have :
fe2bf1ed-9e1a-4b9a-bd11-35d55f75bca5-1749799595

We are thinking about restrictions (firewall) and i’m in touch too with technical team that manage the server of our application to check if something is blocking external requests depending locations.

Thank you for your time.

Thanks @Kevin_Gleizes - appreciate you sharing that request ID, I was able to pull the error message in our logs. I’ll do some more digging into this on my end and loop back with you once I have a solution/next steps :slight_smile:

Hey again @Kevin_Gleizes :waving_hand: - I was able to look into the logs with the team here and we were able to confirm that we (Shopify) are sending out the requests externally to your payment service as expected, but are receiving 403 errors back from your server.

I think you may be correct that something is up with the restrictions on your app’s server side. Like you mentioned, I’d check if there are any firewalls or IP blacklists in affect, but if you and your server providers are able to rule those out, just let us know and we can take another look. Hope this helps a little bit at the very least! :slight_smile:

1 Like

@Alan_G

Thanks a lot for your time and this answer, this is helping for sure.

Have a nice day.

1 Like