#jayvir_api

1 messages ¡ Page 1 of 1 (latest)

south blazeBOT
#

👋 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/1276169706222653512

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

odd wagonBOT
#

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.

lyric sable
#

not able to get proper solution

supple cliff
#

Hi, can you add more context here? What are you specifically trying to do vs. what is happening?

lyric sable
#

i am getting this error :
resource_missing - payment_method
No such PaymentMethod

when i hit this api

curl https://api.stripe.com/v1/payment_methods
-d customer="{{CUSTOMER_ID}}"
-d payment_method="{{PAYMENT_METHOD_ID}}"
-H "Stripe-Account: {{ABC_CONNECTED_ACCOUNT_ID}}"

#

@deep crane

supple cliff
#

This allows you store the payment method on the Platform object, and 'copy' over the data to the varies connected accounts: Clone PM using SetupIntents. I would also recommend using SetupIntents for this:

1/ Create the customer on the Platform Account
2/ Create the Payment Method on the Platform Account using SetupIntents by passing the customer id on the SetupIntents
4/ Create a Payment Method (via /v1/payment_methods endopoint) using the Stripe Account Header and by passing the above object ids both the customer id and the payment method id. It creates a new payment method id on the Connected Account
5/ Create a charge using that payment method from 4.