#ryuuuu
1 messages · Page 1 of 1 (latest)
you are required to pass the payment_method you want to charge yes
ah i was hoping i can set a defualt PM on the customer and the invoice just uses that
that means i need to make some more api calls to get the PM from the customer then
can i even do that without already having the payment method id?
retrieve a customers PM thats already saved in stripe
bad link
you can also try setting https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method on the Customer, I'm not sure if it is used in the exact API call you're using to pay the Invoice but you could test it out
oo i see, ill give that a shot