#mentijm-subscription

1 messages ยท Page 1 of 1 (latest)

lean trellis
#

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?

whole stag
#

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?

lean trellis
whole stag
#

Ok thanks for that info. But what about the initial question? Will it fail with an expired pm?

lean trellis
#

I'm not sure, I'll need to test that on my end. Pease give me some time.

whole stag
#

Ok thanks ๐Ÿ™‚

lean trellis
#

And just to clarify, when you create your subscription you don't pass the payment_behavior field?

whole stag
#

That's correct

lean trellis
#

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.