#warren_lau

1 messages · Page 1 of 1 (latest)

odd abyssBOT
languid tapir
#

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

raw sluice
#

hello

#

This is my code

languid tapir
#

Please do not share screenshots of your code

raw sluice
#

OK

languid tapir
#

Can you explain what you are trying to do?

raw sluice
#

The first payment can be made, but the second payment is not possible

#

Will prompt this

languid tapir
#

That is not what I need to know

#

What Stripe flow are you following?

#

Are you using Checkout, Payment Element, Card Element?

raw sluice
#

Payment

languid tapir
#

One-off payments, invoices, subscriptions?

raw sluice
#

One-off payments and subscriptions

languid tapir
#
  1. How are you making payments?
  2. What API requests are you making?
  3. What does the error message say?
raw sluice
#
  1. Credit card payment
  2. CheckoutSessionParams
  3. The payment link has expired
languid tapir
#

A single Checkout Session is only good for one payment

#

So after the first payment you need to generate a new Checkout Session

raw sluice
#

How to generate it?

languid tapir
#

The same way you generated the first one

raw sluice
#

I changed my browser and it worked.

#

I changed my browser and it worked.

#

Browsers are uniquely identified?

languid tapir
#

I don't know what that means

#

Can you please share

  1. The exact steps you are taking
  2. A sample of your Checkout creation code as text
  3. And example API request ID
raw sluice
#

Browser Traceless Mode

#

It's working.

#

So browsers have unique limitations

#

?

languid tapir
#

I can't help if you don't provide the information I requested

raw sluice
#

Anyone who understands Chinese?

languid tapir
#

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>

raw sluice
#

OK

languid tapir
#

As text

raw sluice
#

In the same browser, after making a payment once, trying to make another payment will result in this bug.

languid tapir
#

Using the same URL or a new one?

#

What does the error message say?

raw sluice
#

This execution is feasible.

#

When using a web framework, the front-end requests may result in a "link has expired" error.

languid tapir
#

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.

raw sluice
#

yes

languid tapir
#

What is the exact scenario where the payment fails?

raw sluice
#

This is correct.

languid tapir
#

What are the exact steps you take to trigger the failed payment?

raw sluice
#

Got it, it's an issue with 301 caching.

odd abyssBOT
languid tapir
#

Are you saying you have resolved the issue?

#

And that it was due to the browser caching an old checkout session URL?

raw sluice
#

yes

languid tapir
#

Great! I'm glad you were able to track down the source of the error

raw sluice
#

I'm not very good at English; communication is really difficult for me.

#

Thank you very much for your service.