#ameen_06487
1 messages · Page 1 of 1 (latest)
What Stripe Product are you using ?
payment links
When payment failed, there will be no redirect, the customer will remain on the payment link page untill they complete successfully their payments
they are redirected only when payment is success
ok .so how to redirect when payment success.
when creating a PaymentLink from the dashboard, make sure to choose this option and fill your url
im creating payment link from my code, which is node.
ok, so you need to set after_completion attribute in that case:
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-redirect
getting error when did this..anything i missing?
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_dXdYFgmEwGlJb6
I think the error message is quiet explicit:
https://dashboard.stripe.com/logs/req_dXdYFgmEwGlJb6
Missing required param: after_completion[type].
You need to set the after_completion[type]:
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-type