#elleschu - default payment method

1 messages · Page 1 of 1 (latest)

shadow solar
#

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?

nocturne briar
#

The second question 🙂 I am looking for the trigger indeed

shadow solar
#

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?

nocturne briar
#

We formerly used Chargebee integration

#

I send you right know the Ids

#

customer with "default" on payment method : cus_JiXxWVJsPC4hx2

#

customer without : cus_Jiyy8XOGAX86dg

open stirrup
#

Legacy Customers using the legacy APIs such as Token and Card have default_source set automatically

nocturne briar
#

Should we make a script to update all payment methods with default_source then?

open stirrup
#

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

nocturne briar
#

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.

nocturne briar
#

Thanks a lot @open stirrup !

open stirrup
#

Sure! Did that answer all your questions?

nocturne briar
#

Yes ! thanks for the moment it's perfect !