Billing API redirect after cancellation

Highlighted
New Member
1 0 1

Hello,

I'm trying to appropriately redirect once the createBillingSubscriptionMutation is executed. Everything seems to work fine in the normal workflow, however, if the user declines the billing charge and is then redirected back to the application, I can no longer redirect them back to the billing page after firing another createBillingSubscriptionMutation. I get the error:

Refused to display 'https://shop-name.myshopify.com/admin/charges/13520928849/request_recurring_application_charge?signature=BAh7BzoHaWRsKwhRAOklAwA6EmF1dG9fYWN0aXZhdGVU--94972a9e4b45677e2f766ff955db3a3eeb36b0df' in a frame because it set 'X-Frame-Options' to 'deny'.
18:03:00.940

Previously it would redirect to the url with no problems but now it is trying to load it into the iFrame. Does anyone know why this is happening or how to solve it?

1 Like