Reputation: 473
I'm generating Invoice
object in Stripe and then redirecting customer to the hosted_invoice_url
(https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_url)
After customer completes the payment, in the final step they are presented with two buttons - Download Invoice and Download Receipt, but there is no button/link for going back to my store. So it's a dead end. Customer can only close their browser tab.
Is there a way to specify something like success_url
or home_url
that would add a button for getting the customer back to my store?
Right now as a workaround I'm forcing hosted_invoice_url
to open in a new tab. Customer closes the tab after they are finished and they get back to my store in the original tab.
Upvotes: 5
Views: 1593
Reputation: 1963
From what I know, this is not possible with hosted invoices pages. I'd recommend relaying this use case/feedback directly to Stripe.
However, if you were to use Stripe Checkout you can pass success_url
and cancel_url
parameters which will fulfil your requirements in this case. Perhaps Checkout might be a better product for your use case?
Upvotes: 2