#dingkai031

1 messages · Page 1 of 1 (latest)

mild hollyBOT
willow cedar
#

What's the PaymentIntent ID?

fiery pelican
#

sorry I'm not sure how to get it from dashboard. But from the code,

  1. I set it like the image below.
  2. Cancel it from dashboard.
  3. Refresh the page.
  4. But stripe element still shows.

I expect that it would give a warning like "client secret expired/canceled".

willow cedar
#

I need to know the PaymentIntent ID so that I can tell if it's cancelled.

fiery pelican
#

ah I found it

#

pi_3MFUKqBBuNcFsmgM1lArYjj3

willow cedar
#

Thanks. the PaymentElement would still render as long as the paymentIntent secret is valid, but when you attempt to confirm it, an error will be raised.

fiery pelican
#

ah I see, thank you