#ama_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1346762253940162590
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, are your user having a Stripe accout that's connected to your account?
If they are, you can follow this doc to decide whether to create direct charges or destination charges
And you can find the implementation details on the referenced doc. Let me know if you have any follow-up questions.
Yes so first I connected them so I have their access token. But now is the question how stripes allow me to make payments on their behave without letting me receive any money and only verifying/ getting their card details once
Ok, so you are using OAuth flow, so I assume you are working with connected standard accounts, and you should use Direct charge charge
To get and verify the card details how do I do that because I saw the tokens are only for a single use?
Can you tell me more about the flow that you are buidling? If you just want to save a payment method, you can use SetupIntents API.
The client selects the payments they want to make, then I connect their stripe account, after I should get their card details and pay all the selected payments. Everytime the clients want to do this again it has to do all these steps again since the appilcation is client-side only
(so the payments are not necessarily to other stripe accounts)
Ok, so you want to save the payment method on your account first and use it to pay the payments created on the connected account? Is this the correct understanding?
I am not sure where I should save the payment method that's why I am reaching out
Because I only want to save it locally such that there is no liability on my side
Sure, it's possible to save the payment method on your account first, and clone it to the connected account for payments.
What would you recommend to do?
So here's my recommendation
- Use SetupIntents API to collect the payment method from the customer (doc)
- Clone the payment method to connected account
- Create direct charge with the cloned payment method. The connected account is responsible for processing fee and dispute.
Thank you! If I have anymore questions I will let you know
For 2 and 3, you can refer to this doc https://docs.stripe.com/connect/direct-charges-multiple-accounts?locale=en-GB#clone-and-create-direct-charges