#ravelens
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- ravelens-schedule-php, 6 days ago, 16 messages
- ravelens, 6 days ago, 18 messages
- ravelens-subs-changes, 6 days ago, 34 messages
- ravelens-setupinetnt-defaultpm, 6 days ago, 9 messages
Which conversion rate are you referencing? When is the payment converted? At presentment or settlement?
So i did charged from customer using conversion rate EUR to USD
And when i want to do transfer, i want to use the charged currency to transfer it to other connect accounts
Does it a way to stored the conversion rate exchange
I want to use it for transfering to the connect account later
Can you share the pi_xxx ID?
I am still on test mode
And this is the PI id
pi_3Ok1HrAHQOXKizcu1rEMyqOI
OK, so you accepted a EUR payment. Where was the FX?
What do you mean by FX ?
I guess it settled in your acocunt in USD as you're a US merchant
Foreign exchange
Yeah, so as you're a US merchant you can only settle in USD. Any payments in currency other then USD (e.g. EUR) will be convert and settle in USD: https://docs.stripe.com/currencies/conversions#additional-settlement-currencies
You can find the rate used on the Balance Transaction associated with the payment: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That should give you the details you need
I can take the exchange_rate value and it'll be there if i did transcation on different currency right ?
Yes, that field will only be populated if there was a conversion
Okay, thanks
So at first, i need to retrieve details of latest_charge first
Then get the txn id
Then can retrieve it using balance transction object right ?
No, you only need the pi_xxx ID: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
See first code snippet
Note the expand parameter
The response will then contain the full Balance Transaction object under the latest_charge[balance_transaction] hash
$stripe->paymentIntents->retrieve([
'id' => $paymentIntendId,
'expand' => ['latest_charge.balance_transaction'],
]);
It's possible to make it like this right ?
Or i must use this :
$paymentIntent = \Stripe\PaymentIntent::retrieve ?
Yep should work too. Some of our PHP snippets just use different PHP syntax