#AnggaNegara-PaymentIntent
1 messages · Page 1 of 1 (latest)
Hi, that's reasonable but I am afraid you won't have that information inside PaymentIntent object
thanks for the reply. is there anyway I can get this information easily?
basically our stripe account currency is in HKD but we get paid with EUR/USD. I need to get the net amount to create an individual invoice of each order with the actual payout from Stripe
@narrow cosmos stepping in for orakaro as he has a meeting right now. You cannot get this information from the PaymentIntent, but you can retrieve it from the corresponding Charge. What you will need to do is to expand [0] the balance_transaction [1] parameter
[0] https://stripe.com/docs/api/expanding_objects
[1] https://stripe.com/docs/api/charges/object#charge_object-balance_transaction
thanks. but where do I get the corresponding Charge? for your information, I'm using Checkout > Session for integrating Stripe. at the end of the process I only get PaymentIntent ID. do I have to set up webhook for this?
ideally yes, you would probably want to setup a webhook. Stripe will send a payment_intent.suceeded event and it will contain the corresponding charge id
thanks for pointing me to the right direction. I'll try your advice