#elleschu - default payment method
1 messages · Page 1 of 1 (latest)
Hello, are you talking about in the Dashboard? That shows the payment method that is set as the Customer's default_source https://stripe.com/docs/api/customers/object#customer_object-default_source
Are you just wondering about the field or are you wondering what is setting this default_source field for some of your users but not others?
The second question 🙂 I am looking for the trigger indeed
Can you tell me a bit more about how you are taking payment here? Are you using Stripe Checkout or your own custom page?
Also do you have example IDs of your customers with and without a default payment?
We formerly used Chargebee integration
I send you right know the Ids
customer with "default" on payment method : cus_JiXxWVJsPC4hx2
customer without : cus_Jiyy8XOGAX86dg
Legacy Customers using the legacy APIs such as Token and Card have default_source set automatically
Should we make a script to update all payment methods with default_source then?
The second customer uses the newer API called PaymentMethod pm_123 and those are not compatible with default_source (considered deprecated and not viable)
default_source has been deprecated for well over 3 years already
We don't have a notion of a default anymore for one-time payments and we recommend tracking this in your own database/code if needed
We are trying to create a subscription in Stripe using API. It seems only subscription for users with payment method AND default_source can be created. How can we bypass that ?
I send you the error
This customer has no attached payment source or default payment method. Please consider adding a default payment method. For more information, visit https://stripe.com/docs/billing/subscriptions/payment-methods-setting#payment-method-priority.
you can also set it on the Customer if it's for subscriptions: https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-default_payment_method
Thanks a lot @open stirrup !
Sure! Did that answer all your questions?
Yes ! thanks for the moment it's perfect !