Updating Stripe Client Address and NOT Card Information

Is it possible to simply update the saved client address on Stripe, and not on the map? The reason I ask is how I now have it, the client can update his information, but to enter it you also need to enter your card, even if it is just a change of city.

I use the following to create a token and update client information

$("#payment-form").submit(function(event) { // disable the submit button to prevent repeated clicks $('#stripe-submit').attr("disabled", "disabled"); // combine first & last name var fullname = $('[name="first-name"]').val() + " " + $('[name="last-name"]').val(); // send the card details to Stripe Stripe.createToken({ number: $('.card-number').val(), cvc: $('.card-cvc').val(), exp_month: $('.card-month').val(), exp_year: $('.card-year').val(), name: fullname, address_line1: $('[name="address"]').val(), address_city: $('[name="city"]').val(), address_state: $('[name="state"]').val(), address_zip: $('[name="zip"]').val(), address_country: $('[name="country"]').val() }, stripeResponseHandler); // prevent the form from submitting with the default action return false; }); 

Is there something like updateToken that I could use? Therefore, I can only change certain values.

+6
source share
2 answers

It seems like this has been available for a while:

0
source

Not at the moment. To update any property of the map, you will need to re-collect the full information about the map from the client.

+6
source

Source: https://habr.com/ru/post/943674/


All Articles