#beau_h_hwang

1 messages · Page 1 of 1 (latest)

static vaultBOT
bright peak
#

Hi there!

#
  1. You would collect a payment method and set it as the default one for the customer or subscription
  2. There are a lot of settings in the Stripe dashboard about this: https://dashboard.stripe.com/settings/billing/automatic
  3. If a payment method is set a a default, it will be used automatically to pay the customer's invoice
burnt arch
bright peak
burnt arch
#

Thank you.
For the third question, so once the customer purchased a subscription plan, will their credit card info be set as default automatically?

bright peak
#

It depends how you create the Subscription.

burnt arch
#

oh then can we set this with <create product> api?

bright peak
#

I don't understand your question, can you clarify?

burnt arch
#

I thought "how I create subscription" means that there is certain parameter to set that

#

Am I right?

bright peak
#

No, there are many different ways to create a subscription: Chekcout Session, Subsription endpoint, Subscription Schedule, etc. Which one are you using?

burnt arch
#

we are trying with checkout session

bright peak
#

With Checkout Session the payment method is automatically set as the default for the subscription, so there is nothing to do.

burnt arch
#

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)

bright peak
#

It's not set as default on the customer object, but on the subscription object.

burnt arch
#

Thank you so much! then can you please tell me where should we check if it is set as default?