#beau_h_hwang
1 messages · Page 1 of 1 (latest)
Hi there!
- You would collect a payment method and set it as the default one for the customer or subscription
- There are a lot of settings in the Stripe dashboard about this: https://dashboard.stripe.com/settings/billing/automatic
- If a payment method is set a a default, it will be used automatically to pay the customer's invoice
Thank you for your shift answer!
For the first one, what api can we use to make a link for customers to change there payment?
There are many ways to do so. The simplest option is to use the Customer Portal: https://stripe.com/docs/no-code/customer-portal
Thank you.
For the third question, so once the customer purchased a subscription plan, will their credit card info be set as default automatically?
It depends how you create the Subscription.
oh then can we set this with <create product> api?
I don't understand your question, can you clarify?
I thought "how I create subscription" means that there is certain parameter to set that
Am I right?
No, there are many different ways to create a subscription: Chekcout Session, Subsription endpoint, Subscription Schedule, etc. Which one are you using?
we are trying with checkout session
With Checkout Session the payment method is automatically set as the default for the subscription, so there is nothing to do.
Thanks!
Oh I tested with Checkout Session and the payment method was not set as a default. Is it error or is it suppose to be shown as default?
(I checked it with Stripe Admin - Customers - Certain customer - Payment methods)
It's not set as default on the customer object, but on the subscription object.
Thank you so much! then can you please tell me where should we check if it is set as default?