#CaReS

1 messages · Page 1 of 1 (latest)

lilac oarBOT
grand isle
#

hello! can you elaborate a bit more on what you mean by stripe doesn't update the PaymentMethod for the customer - where are you expecting to see this payment method? can you share an example checkout session id where you're seeing this happen?

marble dawn
#

I see the payment method here in details of customer

#

but seems it not updated as default payment method and when I try o update quantitiy on user I get error that user doesn't hav payment method

grand isle
marble dawn
#

So as I understand you suggest after the user pay through the checkout session I need to get ID of the last payment method and update the customer invoice settings?

grand isle
#

yep, that's right. I would suggest listening for the checkout.session.completed webhook event, then updating that parameter