How to split payments by api band?

I create a site for charitable donations. I must receive a payment from the user / donor and transfer 20% to the website account and 80% to the donation campaign account. Using PayPal I have an adaptive payment method, but what should I do with Stripe payments? What method can I use for the Stripe API?

+9
stripe-payments
source share
5 answers

For this you need to use Stripe Connect .

Basically, the platform (= you) will have its own Stripe account, and each donation campaign will have its own account associated with yours (which means that they gave you permission to accept payments on their behalf).

Then you could create a board for them using the application_fee parameter to indicate your split. There are two different ways that are described here: https://stripe.com/docs/connect/payments-fees .

+18
source share

Stripe connect is great for this, just keep in mind that it only works in some of the countries listed here https://stripe.com/global . In any other country, you can still accept the payment, and then divide and distribute the funds yourself, which can lead to the transfer of costs.

0
source share

ok, you can also use it with stripe connect and distribute it like this

 // Set your secret key: remember to change this to your live secret key in production // See your keys here: https://dashboard.stripe.com/account/apikeys \Stripe\Stripe::setApiKey("sk_test_0nEtpmgWlX0mXXE6aMXQhhs1"); // Create a Charge: $charge = \Stripe\Charge::create(array( "amount" => 10000, "currency" => "gbp", "source" => "tok_visa", "transfer_group" => "{ORDER10}", )); // Create a Transfer to a connected account (later): $transfer = \Stripe\Transfer::create(array( "amount" => 7000, "currency" => "gbp", "destination" => "{CONNECTED_STRIPE_ACCOUNT_ID}", "transfer_group" => "{ORDER10}", )); // Create a second Transfer to another connected account (later): $transfer = \Stripe\Transfer::create(array( "amount" => 2000, "currency" => "gbp", "destination" => "{OTHER_CONNECTED_STRIPE_ACCOUNT_ID}", "transfer_group" => "{ORDER10}", )); 
0
source share

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?

0
source share

Where can I get CONNECTED_STRIPE_ACCOUNT_ID

Can someone help me with the steps to get the same for test strip mode

0
source share

All Articles