#BarefootDev
1 messages · Page 1 of 1 (latest)
Hi there, as the error explains, you need to attach a payment_method to the customer for recurring payments.
There are many ways to attach a payment methods to customer. The easiest way is to use setup mode checkout session to collect a payment_method from a customer.
Alternatively you can also use subscription mode checkout session and let checkout session to collect the payment_method and create a subscription for you.
Ah i see now - thanks