I want to use STRIPE PHP API for creating payments to customers and for that i have found the code to create the customers but not for to create payment for them.
Code to create customers: https://stripe.com/docs/api#create_customer
require_once('./lib/Stripe.php');
Stripe::setApiKey("sk_test_k9NE13Q2LjsIvYTNQHiP5C5H");
Stripe_Customer::create(
array( "description" => "Customer for [email protected]",
"card" => "tok_1509ycG2gfbJDdl3oYWMe6yq" // obtained with Stripe.js
));
My Scenario is : I have some products and customers comes to my site and purchase the product but some of the customers will come from the affiliate banner and we need to pay some commission amount to the affiliate customers.
So, for such scenario i have to create customers and create payment for them and i have found PHP API code for creating the customers but not for the creating payment to that customers.
To add funds, go to the Balance section in the Dashboard. Click Add to balance and select why you are adding funds to your account. Select Pay out connected accounts to add funds to pay out to your connected accounts.
In the US, you can also add funds from your bank account to your Stripe balance to send payouts that are not tied to Stripe transactions. To start, global payouts require payments accepted with Stripe.
As I understand, you should use Stripe managed accounts
for your customers to make Payouts
.
You'll need to collect additional customer verification data to make payouts
to managed accounts:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With