What's your biggest current challenge? Have your say in Community Polls along the right column.
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.

cancel_url issue on payments app

cancel_url issue on payments app

susanb85
Tourist
4 0 1

Hi. Can you please assist us. We are currently experiencing the following error when a user cancels checkout on the payments app page and decides to retry completing the order.

Screen Recording of the issue: https://www.loom.com/share/188fc43e54da4e2fac6858ff9c2925bd

When the user cancels we are redirecting the user back to the cancel_url provided in the original payments initiation request based on this documentation https://shopify.dev/apps/payments/processing-a-payment. With our HPSDK implementation the customer can still complete the order even after initially cancelling it.

We would like to know if what we are experiencing the new expected behaviour for payment apps?

We have tested our old version of shopify and a post is sent if you try checkout again, so this new behaviour is different.

Replies 6 (6)

anuraag-gupta
Shopify Partner
4 0 0

Hey, I am facing a similar issue. After redirection to cancel_url, I was hoping User will be be allowed to reinitiate the payment with our app. But Shopify doesn't make another `transaction/initiation` call. 

Any solutions to this @ShopifyTeam

jazeel
Shopify Partner
9 0 0

Hello,

We do face the same issue with new implementation where as our OLD HPSDK works fine,

Any update on this? 

@Shopify  @Luke_K 

anuraag-gupta
Shopify Partner
4 0 0
jazeel
Shopify Partner
9 0 0

Hi Anuraag,

We implemented cancel based on the above link. And after redirecting to Cancel_url & if we retry the payment, shopify is not initiating new payment request. Due to this we are not able to proceed with payment after the cancel.

anuraag-gupta
Shopify Partner
4 0 0

Ensure that you are not calling any graphQl endpoint to either resolve/reject. Due to a bug we were rejecting the transaction before calling cancel_url. We fixed that and after that on redirecting to cancel_url User was taken back to checkout page with no errors shown to user. Once User clicks on our payment mode again, the same response is used by Shopify Server that they received in initial transaction/initiate call. So Idempotency is also maintained.

jazeel
Shopify Partner
9 0 0

Thank you for the response will try to handle the same.

Do you have any input on MTLS configuration for payment app? If yes, please share the steps.

It would be of great help.