#Benoît

1 messages · Page 1 of 1 (latest)

neon kiteBOT
low slate
#

👋 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

verbal hound
#

Ok i see, thank you !

low slate
#

let me know if you need any more help

verbal hound
#

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

low slate
#

not default_payment_method it's payment_method

verbal hound
#

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

low slate
#

what webhook event are you listening to?

verbal hound
#

invoice.payment_succeeded

low slate
#

Oh, yes in that case you need to retrieve the PaymentIntent and get the PM from that object

verbal hound
#

Thank you very much 🙂

low slate
#

let me know if you need any more help