#elBR
1 messages · Page 1 of 1 (latest)
So not the current invoice?
is there any field I can use from the invoice
so, after my customer pays the first invoice for the subscription I want to make that payment method the default payment method
and after receiving the webhook for invoice paid I want to get the payment method he used during the payment
Okay that is pretty straightforward
what field can I use?
You would have to retrieve the related Payment Intent (invoice.payment_intent) and then get the Payment Method ID from the Payment Intent object returned.
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you