#ama_best-practices

1 messages ¡ Page 1 of 1 (latest)

ancient wyvernBOT
#

👋 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.

severe totem
#

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.

surreal trail
#

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

severe totem
#

Ok, so you are using OAuth flow, so I assume you are working with connected standard accounts, and you should use Direct charge charge

surreal trail
#

To get and verify the card details how do I do that because I saw the tokens are only for a single use?

severe totem
#

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.

surreal trail
#

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)

severe totem
#

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?

surreal trail
#

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

severe totem
#

Sure, it's possible to save the payment method on your account first, and clone it to the connected account for payments.

surreal trail
#

What would you recommend to do?

severe totem
#

So here's my recommendation

  1. Use SetupIntents API to collect the payment method from the customer (doc)
  2. Clone the payment method to connected account
  3. Create direct charge with the cloned payment method. The connected account is responsible for processing fee and dispute.
surreal trail
#

Thank you! If I have anymore questions I will let you know

severe totem