#krishnaKanabar-confirmCardPayment
1 messages · Page 1 of 1 (latest)
cus_MCdbO4BXip0E7b
when creating a subscription, you need to either
- pass in the ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method. Or,
- If default_payment_method is not provided, the customer should have
invoice_settings.default_payment_methodset
right now your customer does not have a Payment Method attached
i'd suggest taking a look at https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements for a step by step guide
I was not getiing this error before 4-5 days.....As per 'confirmCardPayment' document When you confirm a PaymentIntent, it needs to have an attached PaymentMethod. In addition to confirming the PaymentIntent, this method can automatically create and attach a new PaymentMethod for you.