#heyhey-subscription-redirect
1 messages · Page 1 of 1 (latest)
@stable oak you can't unfortunately, when using the hosted invoice page! It doesn't support that concept.
If you use Checkout to create the Subscription instead you can control the redirect after the payment. https://stripe.com/docs/billing/subscriptions/checkout
So i have to create a checkout session instead of a subscription
yes, you'd create a CheckoutSession and redirect the user to that, they pay on that page and it will automatically create the Subscription object as a result.
Our architecture at the moment uses data from the subscription on creation, will it return the same data?
And how would you seperate a normal one time checkout from a subcription checkout
you can reconcile anything you need to from the webhook you get receive when the payment completes : https://stripe.com/docs/payments/checkout/fulfill-orders
you control it. The parameters you pass when creating the CheckoutSession decide if it's a one time payment or creating a subscription.