#BruceWayne

1 messages · Page 1 of 1 (latest)

shadow sierraBOT
amber briar
#

Hi there!

#

This ID starts with cs_test_ so it should be a test mode Checkout Session.

normal notch
#

hi

amber briar
#

However it looks like this specific ID doesn't exist.

normal notch
#

cs_test_a1DjN25uA1tuagSygiJmWbBjBcFIN7EuVdW3R0H0outDLIW7xbdOOgAZvw

amber briar
#

Yes this one is a valid Checkout Session ID.

#

Why this question?

normal notch
#

In real mode, what is it good for?

amber briar
#

What do you mean "in real mode"?

normal notch
#

real environment

amber briar
#

This is a test mode Checkout Session, created with your test API keys.

#

If you want to create a livemode Checkout Session, you need to use your live API keys.

normal notch
#

When I switch to the real environment, will there be such parameters? Checkout Session ID

normal notch
amber briar
#

I don't understand your question.
Once you use your live API keys, and create a new Chekcout Session, the ID will look like cs_xxx (no test_)

normal notch
#

I wonder what's the point of Chekcout Session?

#

do i need to save it?

amber briar
normal notch
#

Where can I get the failure message if a customer payment fails

amber briar
#

What are you using to accepet payments? Checkout Session or something else?

normal notch
#

Checkout Session

amber briar
#

For Checkout Session there's nothing to do for failed payment. The Checkout Session itself will display an error message and ask the user to try again.

normal notch
#

I get it, it means only the user will receive the failure

amber briar
#

Yes. But if you are interested to be notified about failures, you can listen to the webhook event payment_intent.payment_failed

normal notch
#

OK,thanks

#

pi_3NOd2MILBklWVE7i14KCodXa

#

I will be given this parameter only if the customer pays successfully, right?

amber briar
#

This is a PaymentIntent with status: "succeeded", so yes it was succesfull.

#

But it's possible to have a PaymentIntent object that is not succesful.

normal notch
#

OK

normal notch
#

HI

#

When the user pays successfully, I want to query the transaction in the stripe dashboard, how can I query

amber briar
#

What do you mean by "query"?

normal notch
#

pi_3NOd2MILBklWVE7i14KCodXa

#

How can I find this deal?

#

Is there anywhere to type it, and search?

normal notch
amber briar
#

Yes there is a search bar at the very top of the Stripe dashboard, where you can type any ID

normal notch
#

thanks you

#

have a good day

amber briar
#

Happy to help 🙂

shadow sierraBOT