#Miroslav

1 messages · Page 1 of 1 (latest)

covert flameBOT
marble tangle
#

👋 happy to help

#

you need to add it as the customer's invoice_settings.default_payment_method after you receive the checkout.session.completed

gilded kelp
#

Got it. And how do I fetch the payment method from the Checkout Session?

#

do I go through checkoutSession.PaymentIntent.PaymentMethodId?

marble tangle
#

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

covert flameBOT
gilded kelp
#

thanks, let me try that quickly

#

nice, that worked, thanks again