#Miroslav
1 messages · Page 1 of 1 (latest)
👋 happy to help
you need to add it as the customer's invoice_settings.default_payment_method after you receive the checkout.session.completed
Got it. And how do I fetch the payment method from the Checkout Session?
do I go through checkoutSession.PaymentIntent.PaymentMethodId?
yes
actually
since it's in subscription mode, you need to retrieve checkoutSession.subscription first and expand on latest_invoice.payment_intent
and then you can retrieve the PM Id