#femina-agravat_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- femina-agravat_code, 5 days ago, 12 messages
- femina-agravat_webhooks, 6 days ago, 3 messages
đ 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/1272908454557777962
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
It looks like the PaymentIntent itself doesn't have a property for this but there is an amount_refunded property on the related Charge object that should tell you this. You can get it either via the latest_charge property on the PaymentIntent or in the first charge in the intent's charges array depending on your API version. Also you can get this in the same call where you retrieve the intent by using expansion
https://docs.stripe.com/api/charges/object#charge_object-amount_refunded
https://docs.stripe.com/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can use either to create the refund. It will actually result in the same objects being created and attached to each other. This is just a quirk of what object has what data on it
I have used Payment Link . So we are sending user a link. When they pay, I have registered webhook checkout.session.completed
But in this webhook response i am not getting charge id
How to get charge id when someone pays through link
You would retrieve the related PaymentIntent
Checkout Sessions use Payment Intents, Payment Intents generate charges. So the session itself doesn't have a charge attached, but its PI does
Ok So when I retrieve a payment intent will I get the charge id ?
and using that charge ID can i get the detail of multiple refunds ?
Exactly