#Lalit-save-payment-method
1 messages · Page 1 of 1 (latest)
heya @oblique breach, you can take a look at this guide : https://stripe.com/docs/payments/save-and-reuse
Thank you, is there element to add billing address?
If you want to collect the billing address also, it would be easier if you considered using Checkout - https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-billing_address_collection
actually, i am not accepting any payment from customer, i want to give functionality to users like add payments methods and add or update billing address
what would you be collecting the PaymentMethods for?
maybe can you share more about your business/use case?
i have two portal which are integrated to each other, i one portal customer can make payments and all those stuff, and i am give dashboard to customer where he can manage payment methods and add billling address or check its invoices like that
It really depends on what fits your needs best :
Stripe Checkout can also be used to collect card details and the billing address with mode:setup.
If you're using the Payment Element, you may have to create and pass in the billing_details from your own fields into https://stripe.com/docs/js/setup_intents/confirm_setup#confirm_setup_intent-options-confirmParams-payment_method_data-billing_details if you don't want to rely on the logic from the Payment Element to automatically show the required billing fields : https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails
you can also update the PaymentMethod's billing details later using https://stripe.com/docs/api/payment_methods/update#update_payment_method-billing_details