#lucas_10753
1 messages · Page 1 of 1 (latest)
Hi there!
hi
I'm not sure I understand. You want to test a failed payment? If so use onf of our test card that will be declined: https://stripe.com/docs/testing
I want to trigger the checkout.session.expired event
Oh I see! For this you could create a Checkout Session with a short expiration (30 minutes is the minimum), and wait for it to expire https://stripe.com/docs/api/checkout/sessions/create?lang=node#create_checkout_session-expires_at
The waiting time like this is too long. Can you set this waiting time yourself
Also, what should I do if I want to simulate an abnormal situation such as not having enough money in the card or the card being frozen?
The waiting time like this is too long. Can you set this waiting time yourself
You can set it yourself, but the minimum is 30 minutes.
Also, what should I do if I want to simulate an abnormal situation such as not having enough money in the card or the card being frozen?
Just try a test card that will decline: https://stripe.com/docs/testing
These are not test cards, but test bank accounts. Are you accepting bank accounts payments? If so, just use the account numbers listed.