Stripe - send payment to customers

I want to use the PHP STRIPE API to create payments to customers, and for that I found the code to create customers, but not to create a payment for them.

Code for creating 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 test@example.com",
            "card" => "tok_1509ycG2gfbJDdl3oYWMe6yq" // obtained with Stripe.js
     ));

      

My scenario : I have some products and customers come to my site and buy the product, but some of the customers will come from the affiliate banner and we need to pay a certain commission to the customers membership.

So, for a scenario like this, I need to create customers and create a payment for them, and I found PHP API code to create customers, but not to create a payment for those customers.

+3


source to share


2 answers


I think your problem here is that you are misunderstanding the client option in the stripe control panel.

A typical use would be that you sign up a customer and once you do, you can charge your card as needed, that is, they still send you money, which I believe is not what you want.

Two options that I can see for you.



You can transfer money from your Stipe account to a third-party bank account or credit card. See stripe transfer as well as this FAQ

Alternatively, there is now Stripe Connect , which might just be for you.

Good luck!

+6


source


As I understand it, you have to use Stripe managed accounts

for your clients to do Payouts

.



You will need to collect additional client verification data to make Payouts

managed accounts:

0


source







All Articles