#deepumi_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1257962152120291361
đ Have more to share? Add details, code, screenshots, videos, etc. below.
@bold forge Do you have any suggestion for the above scenario?
No they can't share the same ID. We have a process to "clone" a Customer from Platform to Connected Account
But not between Connected Accounts
So, we should store the customer and their card information on the platform account, and then clone it to each connected account. Is that the ideal approach?
what is the best practice for this scenario?
Yeah I believe so. Here is the guide: https://docs.corp.stripe.com/payments/payment-methods/connect#cloning-payment-methods
Got this error.
Thank you @viral niche .
I have another question: We have already created a few customers on the platform account using the "/tokens" API. Would it be possible to clone these customers to the connected accounts?
You can't create Customer using /v1/tokens, you create Token objects with it.
Actually are you sure that's the flow you want to support?
I have not used payment-methods endpoints when I created a few customers intitally..
Would it be possible to migrate over to use payment_method?
You should be able to turn those Tokens into Payment Method objects
Could you share any docs/articles to do this?
Thank you. So using customer id can we query the token id? On our database we have stored only customer-id
Could you send me an example Token ID please?
yea sure.. we have a customer id created on platform account using card token. Here is the customer id (LIVE) cus_Q8QbGpA9a5s6cL
This was the charge id -> ch_3PI9kJIcWSSPnlgr072lWDsa
I think this was the token when I created "tok_1PI9juIcWSSPnlgr1r4smcJQ"
Are you talking about the Source? card_1PI9jtIcWSSPnlgrrxZbITRN
Sorry, here is the request id "req_gwLFmxt1T1JsGk" when I created the customer
Yes, when you retrieve the Customer, it will contain the attached Sources.
However, Sources API is deprecated, please use Payment Methods instead
Now that I have already created a few customers, How can I migrate.. What are the APIs I should use. Could you please suggest?
You can follow this guide.
Is there any CURL sample code available to convert?
curl https://api.stripe.com/v1/payment_intents
-u "sk_test_u7EPXn2YDSrs1gUI29kaC67Z:"
-d "payment_method_types[]"=card
-d amount=1099
-d currency=usd
-d customer="{{CUSTOMER_ID}}"
-d payment_method="{{CARD_ID}}"
so I can pass the "card_1PI9jtIcWSSPnlgrrxZbITRN" to migrate?
but this API looks like a payment right?
No, sorry, this will just charge the old Source.
There's a tool in the Dashboard to help you migrate the Sources: https://support.stripe.com/questions/reusable-object-migration-from-sources-to-payment-intents
If I understand correctly.
First step is to migrate to the card_source to use Payment Method API.
Second -> Clone payment method to the connected account.
The above URL redirects to https://dashboard.stripe.com/sources-migration which then redirects to the dashboard. But I don't see the migration tool.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
We support only card payments in the US region only.
First step is to migrate to the card_source to use Payment Method API.
Second -> Clone payment method to the connected account.
These are 2 different processes.
- Yes, I recommend you to start using Payment Methods API as soon as possibe.
- If you want to use the Payment Methods on your Connected accounts you need to clone them, yes.
I actually used Payment Intent APIs to create the customer, However, I used the /tokens for Cards initally and then passed token id object to the Payment Intent API
Just want to clarify, Payment Intent and Payment Methods API are not the same.
Okay, got it.. Thank you. I did not use Payment Methods API to capture the customer card info. I belive I used "/tokens" which I should not use anymore right?
Correct