#deepumi_api

1 messages ¡ Page 1 of 1 (latest)

balmy loomBOT
#

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

molten oracle
#

@bold forge Do you have any suggestion for the above scenario?

bold forge
#

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

molten oracle
#

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?

balmy loomBOT
bold forge
molten oracle
#

Got this error.

molten oracle
#

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?

viral niche
#

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?

molten oracle
#

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?

viral niche
#

You should be able to turn those Tokens into Payment Method objects

molten oracle
#

Could you share any docs/articles to do this?

molten oracle
#

Thank you. So using customer id can we query the token id? On our database we have stored only customer-id

viral niche
#

Could you send me an example Token ID please?

molten oracle
#

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"

viral niche
#

Are you talking about the Source? card_1PI9jtIcWSSPnlgrrxZbITRN

molten oracle
#

Sorry, here is the request id "req_gwLFmxt1T1JsGk" when I created the customer

viral niche
#

However, Sources API is deprecated, please use Payment Methods instead

molten oracle
#

Now that I have already created a few customers, How can I migrate.. What are the APIs I should use. Could you please suggest?

viral niche
molten oracle
#

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?

viral niche
molten oracle
#

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.

#

We support only card payments in the US region only.

viral niche
#

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.

  1. Yes, I recommend you to start using Payment Methods API as soon as possibe.
  2. If you want to use the Payment Methods on your Connected accounts you need to clone them, yes.
molten oracle
#

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

viral niche
#

Just want to clarify, Payment Intent and Payment Methods API are not the same.

molten oracle
#

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?

viral niche
#

Correct

balmy loomBOT