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.
source share