#Bethany - testing
1 messages · Page 1 of 1 (latest)
am i operating under a bad assumption, or should I be trying to debug the exception?
It looks like an exception is expected for the ruby library https://stripe.com/docs/api/errors/handling?lang=ruby
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
Definitely appreciate the feedback! We very much care about when our docs are confusing I will pass that along.
and have a great day!
Of course, you too!