#anonymous1239534
1 messages · Page 1 of 1 (latest)
(and display the page that would show up upon successful payment)
When you say "used the API" what are you referring to? Just a PaymentElement integration w/ PaymentIntents?
yes
if a payment was completely and it brought a user to the success page then upon reload wouldn't it return to the default url instead of a page for a "premium user/purchaser" or something similar
for the Payment Element, when the customer is redirected to the return_url, the return_url would contain query parameters with the PaymentIntent id and client_secret, so you would want to use those to query for the status of the PaymentIntent. It's mentioned in this section in more detail : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment