payment app process refund requests failed

payment app process refund requests failed

nihaopay
Shopify Partner
6 0 1

Shopify gives some documents showing how a payment app processes refund requests,
Based on the guidelines given in this document, my payment app works well for more than one year.


recently I reach some issues with refund processing,
1. received twice refund requests after the shop admin click the refund button, and the twice refund request has the same id, which means that they are repeat refund requests.

  
For repeated refund requests, I follow the documentation guidelines and return a status code of 201, and then resolve it by using the refundSessionResolve mutation

2. status of the refund request is pending after we success "resolve it"

nihaopay_0-1689091456974.png

 

nihaopay_0-1689091622862.png

 

 

Does anyone know how to properly handle refund requests ?

 

 

nice work
Replies 3 (3)

TomLynch-DB
Shopify Partner
2 0 0

We've been experiencing the same issue in our payment app as well, following much the same process as this. Returning a 201 response as directed, and then using the GraphQL mutation to resolve the refund. 

 

On doing that, we're seeing an error reported on the Shopify Store's admin area, while we receive no errors on our side to suggest something has gone awry

TomLynch-DB
Shopify Partner
2 0 0

@nihaopay Have you checked the API version of your app? We recently noticed some issues with an old test app that was using version "2022/07 (Unsupported)", which had the issues you're describing

 

Updating that app to "2022/10" seems to have resolved the issue, worth a try!

nihaopay
Shopify Partner
6 0 1

Thank you for your reply, I changed the api version, including the latest version, but it doesn't work

nice work