#antonioricardof_api

1 messages · Page 1 of 1 (latest)

lavish crowBOT
calm gulchBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lavish crowBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1249796126471753738

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

stark summit
#

Hi Rubeus

harsh summit
#

Hello! Can you explain in detail what "business account" means?

lavish crowBOT
stark summit
#

ofc

#

so every account make our signup we have a onboarding, which means we create the customer on our stripe's account, but when the customer will buy something, he is buying something from an other user, right?
Also, we collect the payment method in our onboarding. but now, to make the charge for the seller, we need to attach that payment method informed in our onboarding to the seller account as well to allow the user(buyer) to be charged by the seller.

This is because even though we are a marketplace, we do not transact the entire purchase in our stripe account, only the fees that we charge as a platform.

However, in onboarding we enable the "seller" through oauth connect, to connect their seller account. However, the payment method is only being added to our account as a platform. I would like to know if we can reuse it and also insert that payment method id directly into the seller's account as well. Then we can charge for it.

unborn warren
#

Hello 👋 , apologies for the delay. If you are using Connect it is possible to clone PaymentMethods from your platform account to your connected accounts. The cloning only goes one way, so you would need to save the PaymentMethod on your platform level and then copy it down to each account, but that would let you collect the customer's payment method info only once and then charge on multiple accounts
https://docs.stripe.com/payments/payment-methods/connect

Considerations for Stripe Connect platforms adding support for new payment methods using the Payment Methods API.

stark summit
#

okay, one sec, lemme read

#

could you point me how can I "clone" to all my connected accounts?

unborn warren
#

At the moment the process in that doc needs to be done per connected account. Depending on the amount of accounts and new payment methods that you see it may make sense to do that on demand rather than all at once on top.

stark summit
#

`

Set your secret key. Remember to switch to your live secret key in production.

See your keys here: https://dashboard.stripe.com/apikeys

stripe.api_key = 'sk_test_4eC39HqLyjWDarjtT1zdp7dc'

payment_method = stripe.PaymentMethod.create(
customer='{{CUSTOMER_ID}}',
payment_method='{{PAYMENT_METHOD_ID}}',
stripe_account='{{CONNECTED_ACCOUNT_ID}}',
)
`

My only concern is, can I use the same customer id which was created in my platform stripe's account to create in the connected stripe's account?

#

or do I need to recreate the customer there and then use the same payment method id, it's not clear for me.

unborn warren
#

To have the PM saved on the connected account, you would need a separate Customer object on each account to attach the PaymentMethod to. The other option would be to clone the payment method down each time you want to use it and charge the cloned PM unattached to a customer.

stark summit
#

connected account’s ID as the Stripe-Account header
This acct id has the suffix acct_?

unborn warren
#

Correct

stark summit
#

perfect

#

one more question, do I need to recreate the customer on the connected account, or can I use the same ID which was created on main acct?

unborn warren
#

You would need to create a new Customer and use that object's ID

stark summit
#

okay the only thing I need to use is the same payment method id right?

#

what I understood was that, we just need to use an existing payment method to clone that in other customer with in another connected acct.

unborn warren
#

Depends on which part of the process that you are talking about. For the PM clone call (the PaymentMethod create at the bottom of the doc), you use the Customer ID from the connected account, the payment method ID from the platform account, and the connected account's ID. That call returns a new PaymentMethod on the connected account that has a new ID, to charge that PM on the connected account you need to use that ID

#

Does that help?

stark summit
#

Yes

#

I guess