#Benoît
1 messages · Page 1 of 1 (latest)
👋 happy to help
Sources is an old API, that we recommend new integrations not to get into.
you can use the PaymentIntent's payment_method to set the Customer's invoice_settings.default_payment_method for any subsequent invoice payment
Ok i see, thank you !
let me know if you need any more help
Yes, i search the information in the payment.payment_succeed webhook
When i look at my wehbook, i can see "default_payment_method" to NULL
not default_payment_method it's payment_method
I don't see it
I think i will have to use the PI ID given in the webhook to retrieve the whole PI, and then get the payment_method that was used
what webhook event are you listening to?
invoice.payment_succeeded
Oh, yes in that case you need to retrieve the PaymentIntent and get the PM from that object
Thank you very much 🙂
let me know if you need any more help