#warren_lau
1 messages · Page 1 of 1 (latest)
The first payment can be made, but this error prompt will appear on the second payment
Hi 👋
Can you explain what is happening here? What kind of Stripe integration are you using?
Can you discuss this here? Without pictures of your code?
If you need to share code please share it as text between three ` marks
Please do not share screenshots of your code
OK
Can you explain what you are trying to do?
The first payment can be made, but the second payment is not possible
Will prompt this
That is not what I need to know
What Stripe flow are you following?
Are you using Checkout, Payment Element, Card Element?
Payment
One-off payments, invoices, subscriptions?
One-off payments and subscriptions
- How are you making payments?
- What API requests are you making?
- What does the error message say?
- Credit card payment
- CheckoutSessionParams
- The payment link has expired
A single Checkout Session is only good for one payment
So after the first payment you need to generate a new Checkout Session
How to generate it?
The same way you generated the first one
I changed my browser and it worked.
I changed my browser and it worked.
Browsers are uniquely identified?
I don't know what that means
Can you please share
- The exact steps you are taking
- A sample of your Checkout creation code as text
- And example API request ID
I can't help if you don't provide the information I requested
Anyone who understands Chinese?
Hello, unfortunately we can only provide English support in this channel. Feel free to switch to English, or contact support at <https://support.stripe.com/contact if you need help in another language>
OK
send you code?
As text
In the same browser, after making a payment once, trying to make another payment will result in this bug.
This execution is feasible.
When using a web framework, the front-end requests may result in a "link has expired" error.
I'm sorry but you are not being at all clear with what you mean. Each time you run that script you create a new Checkout Session. Each one is good for a single payment.
yes
What is the exact scenario where the payment fails?
This is correct.
What are the exact steps you take to trigger the failed payment?
Got it, it's an issue with 301 caching.
Are you saying you have resolved the issue?
And that it was due to the browser caching an old checkout session URL?
Great! I'm glad you were able to track down the source of the error