#smartbettormicah-developer_save-and-reuse-pm
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/1382472746868539453
📝 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.
- smartbettormicah-developer_code, 1 day ago, 14 messages
Hi there,
Let me take a look
One question about your first question. What exactly do you mean by I want to make sure that the payment method is not limited to the one I specify here. ?
I specify the payment method there. But I just want to use what the customers default payment is
I dont want to run into any future problems by specifying just the one payment method
Ok good that makes sense. So in that case it makes even sense to not set the default_payment_method on the Subscription creation because if not set, Invoices will use the customer’s invoice_settings.default_payment_method or default_source.
https://docs.stripe.com/api/subscriptions/create#create_subscription-default_payment_method
But also the customer can also change their payment method for the Subscription in the Billing Customer Portal in the future too https://docs.stripe.com/customer-management#:~:text=and business information.-,Payment methods,-Manage payment methods
Awesome what about if I leave payment_method_types empty
It's optional, so instead of "leaving it empty", you can just skip/omit entirely. Stripe will automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_settings-payment_method_types
Great! Lastly what do you suggest for payment_behavior. I read all of the options and am still confused. For reference my flow is
- Payment intent for $1
- Use that customer to create a subscription
Well the payment_behavior depends on what you actually want to accomplish. For example why do you create a $1 Payment Intent?
To verify the card
Ok, instead of using Payment Intent, creating a Setup Intent is the recommended approach. Even though it's not directly mentioning React Native for the frontend, you can still follow along this guide : https://docs.stripe.com/payments/save-and-reuse