Does anyone know how to directly transfer to a merchant account using the Stripe API?
I did my best:
$ charge = \ Stripe \ Charge :: create (array ("amount" => 100, "currency" => "usd", "source" => "tok_visa", "Transfer_group" => "{invoice10}")) );
// Create a transfer to the first connected account:
$ Transfer = \ Stripe \ Transfer :: create (array ("amount" => 50, "currency" => "usd", "destination" => "{CONNECTED_STRIPE_ACCOUNT_ID_1}", "Transfer_group" => "{invoice10}" ));
// Create a transfer to the second connected account:
$ Transfer = \ Stripe \ Transfer :: create (array ("amount" => 30, "currency" => "usd", "destination" => "{CONNECTED_STRIPE_ACCOUNT_ID_2}", "Transfer_group" => "{invoice10}" ));
But to no avail ... Can anyone help me?
swati
source share