#miran_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1288102738353455157
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- miran_best-practices, 1 day ago, 20 messages
- miran_docs, 3 days ago, 11 messages
- miran_code, 4 days ago, 6 messages
You'll need to clone the Customer too, otherwise the pm_xxx you cloned won't be reusable on the connected account: https://docs.stripe.com/connect/direct-charges-multiple-accounts#set-up-recurring-payments
We don't have subscriptions on the connected account. Just one time charge...
Then that's fine then yes. But as long as you understand that once you clone the PM to the connected account and use it for payment without being saved to a cloned customer it is discarded and not reusable
Means you'd need to clone it again for a future payment with that card on that same conncted account
Okay, that is acceptable at-least for now. So, you are saying I need to clone the PM to create direct charge?
I just created a payment intent with the stripe_account header and it did create the PI.
Couldn't I do that instead of cloning?
If you're doing direct charges, via Stripe-Account header, then all referenced objects (cus_xxx, pm_xxx) must exist on the conncted accounts
Okay, if I need to do that, why this works? This made me so confused...
Can't I just pass to frontend and use the client secret to accept the payment?
Why woudn't that work? It's just an intent in requires_payment_method state
You didn't pass in parameters that reference any objects
Yep, of course. That is a totally normal flow! But in Connect scenarios can be repetitive for users to continually add the same card details on your application which is what the cloning method makes redundant
Ahhh.... now I get it. So, in our application, since I am not a genius on Stripe, the customers always pays with their card. We didn't provide any feature to save their cards...
Normally in Connect scenarios when a customer comes to checkout in your application, you'd save the card on the platform first and then clone to the conncted account(s) where you're creating the payment (intent)
Then that same PM that is saved on the platform can be cloned to other connected accounts in scenarios where that customer returns to your app, but wants to purchase from a different connected account
Thanks, it makes sense now.
hi there! let me know if you have other questions