#jasonfish568
1 messages · Page 1 of 1 (latest)
note that the usual way you create a Subscription is you create the Subscription first, in an incomplete status, and then you use the first Invoice's PaymentIntent on the frontend, which creates and charges the PaymentMethod, you don't need to create the PaymentMethod first.
- Sure, they might! depends how you build your user authentication. And if you use Connect for Direct Charges then yes,you have entirely separate Customer objects across all the accounts, they share nothing.
- Only the cus_xxx ID you actually pass, that's it. You could manually try to clone it to all N other Customers on other connected accounts (https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods)
- Depends, usually you'd use a SetupIntent (https://stripe.com/docs/payments/save-and-reuse?platform=web)
- You use the Invoice's PaymentIntent with stripe.js in the frontend and that creates/charges/saves the PaymentMethod https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Can I assume if I use frontend Invoice's PaymentIntent, it will pop up a modal or somethinig to let the customer input his first payment method? Once it's paid Stripe will push to my webhooks saying this invoice has been paid and save this payment method for future use?
So generally, Stripe.js must be used on the frontend to let the customer securely send the payment details to Stripe hence the payment method will be added.
If this is the case, which API should I use to update the payment method if the customer wants to update it? Should I get this done still using Stripe.js?
Sorry for not understanding too much on Stripe.js, I'm from a backend background.
Can I assume if I use frontend Invoice's PaymentIntent, it will pop up a modal or somethinig to let the customer input his first payment method?
no, there's no modal, you'd build your own form using our Element card inputs, it's bespoke.
Once it's paid Stripe will push to my webhooks saying this invoice has been paid and save this payment method for future use?
yes
So generally, Stripe.js must be used on the frontend to let the customer securely send the payment details to Stripe hence the payment method will be added.
yes
If this is the case, which API should I use to update the payment method if the customer wants to update it? Should I get this done still using Stripe.js?
there are multiple ways to do that depending on the level of integration you're looking for, here are some of the options
Thanks so much for your help. Let me consult with my frontend team. I may come back with any more questions.