#Bethany - testing

1 messages · Page 1 of 1 (latest)

dry depot
south granite
#

am i operating under a bad assumption, or should I be trying to debug the exception?

dry depot
#

I am less familiar with that library, does the exception contain the payment intent itself?

#

Otherwise you may want to retrieve it again, it should have a status of requires_payment_methos as you expect

south granite
#

ooh, ok, good call. it looks like the exception does contain the intent. nice.

#

(the docs for Confirm a PaymentIntent describe what's going to happen when you confirm in terms like "the PaymentIntent will transition to the requires_action status", and "If the payment fails, the PaymentIntent will transition to the requires_payment_method status. And it also documents the return value as "Returns the resulting paymentintent after all possible transitions are applied".

so anyway, that lead to surprise when I wasn't just getting a neatly "transitioned" IntentObject back, and instead was seeing the CardError exception.

I mention this in case anyone is keeping a tally of how many times devs are confused by various parts of the documentation, or whatever, here's that feedback about how I wound up surprised!)

#

thanks

dry depot
#

Definitely appreciate the feedback! We very much care about when our docs are confusing I will pass that along.

south granite
#

and have a great day!

dry depot
#

Of course, you too!