Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

paymentSessionResolve not working as expected on success events.

paymentSessionResolve not working as expected on success events.

agatto-conekta
Shopify Partner
1 0 0

 

Hello all!

 

I have a productive payments app installed in about 1000 stores and i'm having a weird issue on the mutation to resolve the order as paid. On some random orders, the paymentSessionResolve is not working as expected, ill try to explain it below;

 

On some random orders, when i do the graphql request to resolve the payment, i get a success response with success status code and body, but the order is still "pending payment" on the merchant store. For example;


[2022-07-07 14:43:05] Order: FA_1J6mdywqs4XXXXXXXXXX
"mutation_response":{"data":{"paymentSessionResolve":{"paymentSession":{"id":"gid:\/\/shopify\/PaymentSession\/FA_1J6mdywqs4XXXXXXXXXX-","status":{"code": "RESOLVED"}},"userErrors":[]}},"extensions":{"cost":{"requestedQueryCost":11,"actualQueryCost":11,"throttleStatus":{"maximumAvailable":109200,"currentlyAvailable ":109189,"restoreRate":5460}}}}

 

I've tried to 'fix' it sending that mutation two times for each payment, with 0.75S of delay, but im still having the same problem,

but if i wait some time and i do another retry with the SAME request, it works..

 

So, i think is not a problem of the request, because it works on the 90% of the orders and even when i retry the same request it works..

 

Also, since the request has a success status code and body and payment apps dont have a scope to read the order status, i cant identify that cases to do an automatic retry, i need to wait for every merchant to send me a ticket with that issue and take manual actions

 

it could be a shopify issue maybe?

 

I hope someone can help me, Thanks

Reply 1 (1)

KB77
Shopify Staff
59 6 11

Hi @agatto-conekta If you have some example checkout urls or the x-rexquest-id of some failed mutations that were sent you can include those on this form 

https://help.shopify.com/en/questions/partners#/contact/report-an-issue and our support team can check the log data to see if theres any insights there we can share to help understand this. 

 

KB77 | API 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