#[Redacted]

1 messages · Page 1 of 1 (latest)

dark pecanBOT
hasty umbra
#

Hello!

#

Was curious how to get the exchange rate from a transfer from a customer to a connected account. As you can see in the screenshot it is null. Thanks in advance!

#

Check the Balance Transaction on the other account, the one related to the incoming payment.

tawdry granite
#

Okay! Not sure if im doing this wrong or not, because the error I'm getting says "No such transfer"

#
        $stripe = new StripeClient(config('services.stripe.secret'));
        $tr = $stripe->transfers->retrieve(
            'tr_***********',
            [
                'expand' => ['balance_transaction'],
            ],
            [
                'stripe_account' => 'acct_*******',
            ]
        );
hasty umbra
#

You need to use the ID of the payment, not the Transfer.

#

When your platform account transfers funds to a connected account there are two objects created: a Transfer on your platform to represent the funds moving out of your account, and a Charge on the connected account, to represent the funds moving into the connected account. You need to use the Charge ID, which should start with py_.

tawdry granite
#

Okay, that makes sense. Am I using the php $stripe->charges->retrieve

#

Perfect got it! Thank you for all your help