#mentijm-subscription
1 messages ยท Page 1 of 1 (latest)
Hi @whole stag! If I understand correctly, you have a customer who already has a default payment method set to an expired credit card. Then you would like to know what would happen if you create a subscription for this customer?
Yeah, unless that is something that can't happen ๐
Asking because we discovered that the subscription create call fails if the customer does not have a payment method. So now we checking that it has a payment method before making the subscription create call. But then we thought what if the customer only has an invalid/expired PM?
the subscription create call fails if the customer does not have a payment method.
You could setpayment_behavior: "default_incomplete"when creating the subscription. This allows you to create a subscription even if the customer doesn't have a payment method.
https://stripe.com/docs/billing/subscriptions/overview#default-incomplete
Ok thanks for that info. But what about the initial question? Will it fail with an expired pm?
I'm not sure, I'll need to test that on my end. Pease give me some time.
Ok thanks ๐
And just to clarify, when you create your subscription you don't pass the payment_behavior field?
That's correct
After discussing with a colleague, I learned that if a customer has an expired card, then the subscription would just attempt the charge and see if it works or not.