#arielbo - PM
1 messages · Page 1 of 1 (latest)
hello
hello @boreal furnace! the default payment method is what is defined in this parameter : https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method
can I update this parameter like my code that I did send you ?
have you tried running it and does it work?
yes
I develop now
how can I get the default method payment please? in one list how can I identify this?
you can retrieve the customer and see if it has a PaymentMethod in that parameter : https://stripe.com/docs/api/customers/retrieve
thank you
and maybe you know how can i do to use some object or parameter to create a button with to pay directly if the customer have one default payment in saved ?
what are you using for your frontend? React or HTML/JS?
php stripe
sorry, i'm not familiar enough with building a website with php to advise, but probably there should be some tutorials out there that you can refer to