#abdus-samad_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300885395340529757
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Payment Intents have a latest_charge property which points to the latest Charge for that Payment Intent: https://docs.stripe.com/api/payment_intents/object#payment_intent_object-latest_charge
You can also list Charges by Payment Intent: https://docs.stripe.com/api/charges/list#list_charges-payment_intent
That means that Payment Intent doesn't have a Charge. What's its status?
So this is created after the actual payment is done, like after for example credit card gets charged?
Yes.
this is status "status": "requires_payment_method",
That means the Payment Intent needs a Payment Method in order to move forward. You said you were trying to create a Refund... what are you trying to refund exactly?
So i did the payment
So i will get the latest charge as part of stripe-webhook call back?
If you set up a Webhook Endpoint to listen for payment_intent.succeeded Events, yes.
is this the only way of getting the latest_charge value, via callback?
My worry is if my application misses the call back i will loose it
any other way to get it?
Does it not come when i make this call
PaymentIntent paymentIntent = PaymentIntent.create(params);