#adase - PaymentIntent CardException
1 messages · Page 1 of 1 (latest)
Yep let me grab that
req_rQE7cE3yMqKS7J
req_V0w1pPc7OpDQ92
A couple of examples
req_pugByVWlcpA4IC
Also - excellent username
Thank you!
There isn't a payment intent id on that CardException object, but there is a charge id, so you could make a call to the API and get it from that
I'm not too familiar with the Java library unfortunately, so I'm not sure entirely offhand how to grab the paymentintent id in your situation directly. I do know it should be a part of the response
Just looking at your request ids I do see the payment intent ids in the response object
Yes I saw that as well which is why I was hoping we could retrieve them without a second API call, however the PaymentIntent.create call seems to wrap the full response and throw the exception upon any 402 (card exception)
Therefore at the time of handling that exception we only have the information available in the CardException
Perhaps it's in the StripeError
That may be it, the CardException should have an associated StripeError which hopefully has the paymentIntent ID
Let me know if that path works for you. Otherwise, I think you'll have to go the round-a-bout way of using the charge id unfortunately
Ok thank you for the help. That should be enough to go on