How do I know if a user has accepted or rejected the subscription?

How do I know if a user has accepted or rejected the subscription?

nikola_seo
Shopify Partner
13 1 1

After I create a subscription and get a confirmation URL, how do I know that the user has confirmed the subscription and not rejected it. Does the `ReturnURL` get some kind of a query parameter to know that it was successful or not? Eg my return url is set to `http://localhost/subscription/confirmed`, how would I know that it was rejected instead?

Replies 2 (2)

heddykhalifa
Shopify Partner
51 6 16

Hey Nikola!


When the user confirms or rejects the subscription, Shopify usually sends them to your ReturnURL with something like status=success or status=failure added to the URL. Just keep an eye on those query parameters to see what happened. It might be different depending on the setup, so it's worth checking it out in action.

nikola_seo
Shopify Partner
13 1 1

Thanks for the reply! Still dislike the vagueness of it, it should really be properly documented...