#mindsetinmeta

1 messages ยท Page 1 of 1 (latest)

supple moatBOT
primal quest
#

hello! which portion are you referring to failing - the auth or the capture portion?

daring stirrup
#

hello

#

the pre-auth part

primal quest
daring stirrup
#

What event will it trigger?

#

I do not see a test card for pre-auth failure

#

am I missing anything?

primal quest
#

i'd suggest testing it out, any of the cards that results in a decline would cause a failure

daring stirrup
#

I did a testing with insufficient funds but it triggers no error. Checkout session status is still open and payment status is unpaid. PI.status stays the same as "requires_payment_method"

#

how to tell if the buyers has even tried pre-auth it? let alone the failure part.

primal quest
#

can you share the checkout session id? It'd look like cs_test_

daring stirrup
#

cs_test_a1cHT6pqoSOZkScA5yIcU54rcskNYI2TZ1JUXVCPZz8PTrpzFqFjzZZhex

primal quest
#

i don't think this is the checkout session where you tested with a declined card

daring stirrup
#

cs_test_a18lTKwQ9QAfNWY6LoeVLnULzyah34Se7OVYleNyrck0B91CTOfLXgZ95S

#

for a declined card, the cs has no change before and after

#

๐Ÿ˜‚

#

that's why I'm curious how can I tell it is declined

primal quest
#

but why do you want to know if the card was declined on a Checkout Session?

#

ultimately, all you would likely want to know is if the Checkout Session was successful in order to fulfill an order.

daring stirrup
#

we are developing a booking system of tutors. if A books a tutor, we have to lock the tutor down so others cannot double book. we need to tell if A is trying to book otherwise we need to expire the checkout session to free up the tutor for others to book.

primal quest
#

how are you planning to tell if A is trying to book?

daring stirrup
#

I do not see how I can do that so I'm checking with you guys. ๐Ÿ˜‚ One way might be through PI.status but for pre-auth, it's not working. Documentation says I can check PI.amount_capturable to tell the pre-auth is successful but how can I tell if it fails?

primal quest
#

If you want to expire the Checkout Session after a period of time, you can set the expires_at : parameter

#

and release the tutor for others to book

daring stirrup
#

yes that's what I did

primal quest
#

alright, is there something about this method (using expires_at and checkout.session.expired event) which isn't working out for you?

daring stirrup
#

dude, you got too much in your plate now. I would bother you in another time.

#

my original question was, is it possible for "placing a hold on a payment method" to fail? What event will it trigger?

#

just give me a response when you get a chance. no worries.

primal quest
daring stirrup
#

thanks alex

#

didn't know we can see all events on dashboard

#

it's pretty cool

#

was using the event triggers CLI only

primal quest
#

anything else I can help with?

daring stirrup
#

all good