Stripe, send money to my customers
One way would be to setup a system that handles the payment and then based on the card you have pass it to 3:e party API that does money transfers or One easy way is if you ask the customers to enter in the needed information you can then use your banks API to from your account send the money to them.
However easiest way is to use the refund function that the api of stripe has:
charge = await stripe.charges.refund(charge.id, {
amount: 1000
});
or you you can use the create transfer function: https://stripe.com/docs/api#create_transfer Create_transfer can send payments to 3:e party bank or payment service.
The thing you should base your system on is what information you will need to perform the task and then set that up once that is done you can use the already made API functions from Stripe to handle the task.
Please let me know should you have any further questions.
(Disclaimer: I work for Stripe.)
Generally speaking, you can't arbitrarily send funds to third-parties through Stripe.
With Stripe Connect, you can create charges on behalf of third-parties, i.e. you'd charge a customer on behalf of a seller, and optionally take a cut (an "application fee") out of the transaction. These charges have to be for the sale of actual goods or services.
At this time, your merchants or service providers can be paid out:
- in all countries supported by Stripe: to their bank account
- in the US only: to debit cards (not credit or prepaid cards)
I recommend you spend some time reading through Connect's documentation as well as this support article to find out if Connect would be a good fit for your needs.
I recommend that you reach out to Stripe's support through the contact form and explain your business model and the flow of funds you had in mind. The support staff will be able to confirm whether your business model can be supported by Stripe and how you'd use the API to implement it.