#Sharvari96
1 messages · Page 1 of 1 (latest)
You can List Checkout Session filtering by the payment intent id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can the same payment intent have multiple sessions?
I am using this -
stripe.checkout.Session.create() to give out a line so that our application users can make a payment
One PaymentIntent can only belongs to one Session
Ok
Can you help me understand the flow when card payments fail -
what happens from a user perspective if they were not able to fullfill the card payment from a checkout session?
The Checkout Session will display some red error says your card is declined. You can test it using the test-decline card on any of Checkout Session in test mode
I did that
my question is - will they be redirected somewhere? - after multiple attempts
or will the session just expire on its own, server can listen to the corresponding event?
also - I am able to reload the checkout link - should that be allowed? I thought most payment links do not allow reload - will the session id be the same even upon reload? - and what about payment Intent ID - will that be same or will a fresh intent be created
No redirection after declines. The session will just be there and expired after 1 day
Not sure what you mean by reload
browser reload?
You can test it, right? a PaymentLink will regenerate a different CheckoutSession each time
PaymentLink is a global link you can give to multiple customers. Each of them will have a different Checkotu Session and PaymentIntent
oh
I am using - stripe.checkout.Session.create()
not the PaymentLink API
shoudl I be using the PaymentLink API instead? now I am confused
this is for one time purchases not subscriptions
also I am not getting events upon browser reload of the checkout page
Also - can we set a custom expire time ?
Sorry I thought you used Payment Link as you mentioned in your previous message
Checkout Session will create the Session immediately, then no it won't generate new id
@native star can you answer this - #1123480847253766184 message
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
sorry that tagged you, i waited for 30mins, didnt want the thread to get closed
ok thank you!
np, sorry
- so the min time we can set is 30min
but I think we might need a much less time than that...
is that possible?
Sorry no AFAIK. You can try but it would probably error on parameter value
yes it did that
can you see the text below something went wrong - I hope this will not be shown in live mode?
I am expiring the checkout session when card gets declined. - I need the customer to try to pay again, in that scenario.
It will behave the same in Live mode. After you expires it it will always displays like this
How about ... just don't expire them. Let them try again in the same page
I don't really grasp the reason you would like to expire the Session.
Leave it as it is and the customer can simply input another card