#kdawg-success-page
1 messages · Page 1 of 1 (latest)
Custom payment flow
With Payment Element?
yes
Got it, so you can set redirect: if_required as talked about here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
However, this will only be true if you are only accepting paymentmethods that don't require a redirect
Like just cards
my issue is that redirects are not working as expected, i have an spa and i've got this setup for return_url
confirmParams: {
return_url: "http://localhost:5000/#/SuccessPage",
},
but on payment success it redirects to :
http://localhost:5000/?payment_intent=pi_3KhyxJL95wp*******E6J4dA&payment_intent_client_secret=pi_3KhyxJL95wp*******E6J4dA_secret_g1oeAP9NtJO0E4d9NC1rjcJwb&redirect_status=succeeded#/
instead..
So it is expected that it is going to provide you back parameters about the PaymentIntent in case you want to use those to display info to your customer (hint: you should use Webhooks instead). I don't think /#/SuccessPage is a valid subdomain, right? Thus it is just hitting the index?
Yep you can't use /#/ as a subdomain