#tymm
1 messages ยท Page 1 of 1 (latest)
You should get the charge object from the invoice's payment_intent object first, and then get the fee_details (https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee_details) from the balance_transaction of the charge object,
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 see that there is a list of charge in paymentintent object. what is the circumstance that an invoice can have more than 1 charge?
If there are multiple payment attempts and they were failed, you will find those failed charges in the charges list
i see, okay. but the fees and amount shouldnt be different across all the charges except the status of the charge, am i right?
Depends on the Payment Method used to confirm/pay
There are differing fees across types of methods, and the origin of the card
right. ok. thanks ๐