#Fireenn
1 messages · Page 1 of 1 (latest)
Hmm good question
I'm not sure, going to give it a try an see what happens
The docs say shipping mode can be used with other elements (eg, card element)
but Billing mode only specifies use with the Payment Element
hmm I tried under billing mode, but I can try with shipping mode and see
well unable to with shipping mode, guess I just have to create the billing_details object on my own
No, sadly the billing details on't get set on the PM when i do that
but i can share some feedback, seems reasonable to want them to be used!
yes please pass it along for a feature request, to be able to use the address element for the billing_details object for the createPaymentMethod
or better yet, just to be able to pass the elements thats created when you call var elements = stripe.elements(options); much like how the PaymentElement works.
Ah, i think you can actually do this already
I did some poking about
if you set up an event listener on the address element change event, you can inspect for complete and take the address:
https://stripe.com/docs/elements/address-element/collect-addresses?platform=web&client=html#web-retrieve-address
This address is compatible with supplying to billing_details[address] in createPaymentMethod
Just tested this to confirm
yeah just tested and it works out fine.
on the dashboard is there a place where I can see saved payment methods?
I know on a saved customer I can view it but because I haven't saved the payment method to a customer yet I don't really know where to find a list of all the payment methods saved to the account.
As far as I know there isn't a way to do that in the dashboard but let me check in to this. You may be able to list them from the API but I am unsure on that as well
You can definitely do this with the API (I thought that specifying a customer ID might be mandatory) https://stripe.com/docs/api/payment_methods/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Unfortunately looking like there isn't a dashboard page for this.