How can I transfer money from one stripe account to another stripe account ?
I am following this code from here:
\Stripe\Stripe::setApiKey(PLATFORM_SECRET_KEY);
\Stripe\Transfer::create(array(
'amount' => 1000,
'currency' => "hkd",
'destination' => {CONNECTED_STRIPE_ACCOUNT_ID}
));
But getting this error:
Type: Stripe\Error\InvalidRequest
Message: Insufficient funds in Stripe account. In test mode, you can add funds to your available balance (bypassing your pending balance) by creating a charge with 4000 0000 0000 0077 as the card number. You can use the the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com /docs/api#balance).
But in my test account from where I have to transfer there is around $3000 and still I am getting the above error.
see this: test-account-balance