Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe- Send Payment to Customers

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.

like image 818
Harshal Mahajan Avatar asked Jan 03 '15 14:01

Harshal Mahajan


People also ask

How do you send money to Stripe 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.

Can Stripe send payments?

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.


1 Answers

As I understand, you should use Stripe managed accounts for your customers to make Payouts.

  • https://stripe.com/docs/connect/managed-accounts
  • https://stripe.com/docs/connect/payouts

You'll need to collect additional customer verification data to make payouts to managed accounts:

  • https://stripe.com/docs/connect/identity-verification
  • https://stripe.com/docs/connect/updating-accounts#account-verification
  • https://stripe.com/docs/connect/required-verification-information
  • https://stripe.com/docs/connect/testing-verification
like image 97
Viktor Kruglikov Avatar answered Oct 29 '22 11:10

Viktor Kruglikov