#eight-checkout-pi

1 messages · Page 1 of 1 (latest)

lusty pawn
#

hello, the CheckoutSession object has a payment_intent field on it

dire kelp
#

That's brilliant, thank you.

#

Hang on while I try it.

#

How would I go about requesting the PaymentIntents' status by the ID given?

lusty pawn
#

you retrieve the PaymentIntent via the API

#

that gets you the full PaymentIntent object

dire kelp
#

That's perfect, thank you, I was looking for that page specifically.

#

One more question, the ID in the checkout session is a hex value while the ID passed to that function is an alphanumeric string.

#

Can I derive it from the hex code or am I missing something?

#

The Checkout session object has the field PaymentIntent:0xc000316000

#

But the getter function looks to want something like "pi_1EUmyo2x6R10KRrhUuJXu9m0"

lusty pawn
#

that hex value isn't the ID of Checkuot

#

that is the memory address of the PaymentIntent object in your application code

dire kelp
#

🤦‍♂️

#

Sorry.

lusty pawn
#

all good!

#

easy mistake to make

dire kelp
#

I'm a bit new to go to tell you the truth, we're phasing it in at work.

#

Thank you for your help.