charges objects is nulll
lamikam100 opened this issue · comments
Describe the bug
getLatestChargeObject is returning null for the Charge obejcts
To Reproduce
setup a payment intent with direct payment.
test.zip
Expected behavior
Charge element should not be null
Code snippets
see zip file
OS
windwos
Java version
11
stripe-java version
23,1,3
API version
20,0,0
Additional context
No response
@lamikam100 the latest_charge
property on a PaymentIntent is only set after a payment attempt has happened where you confirmed the PaymentIntent already with an existing or new PaymentMethod.
I can't look at your code as you didn't extract the relevant part and I won't open a random ZIP file but this is unlikely to be a bug in the stripe-java SDK and more likely an integration issue/confusion.
Please work directly with our support team for help instead: https://support.stripe.com/contact