Created
March 26, 2015 22:05
-
-
Save rootedsoftware/1abfffd4544a8d438cf0 to your computer and use it in GitHub Desktop.
Stripe update customer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Trying this | |
Stripe.customers.update(customer_id, { | |
"metadata.city": form['address.city'], | |
"metadata.state": form['address.state'], | |
"metadata.address_line1": form['address.address_line1'], | |
"metadata.address_line2": form['address.address_line2'], | |
"metadata.postal_code": form['address.postal_code'], | |
"metadata.phone": form.phone | |
}, function (error, customer) { | |
if (error) { | |
//console.dir(error); | |
stripeCustomerUpdate.return(error); | |
} else { | |
stripeCustomerUpdate.return(customer); | |
} | |
} | |
); | |
Getting this error in the dashboard | |
error: | |
type: "invalid_request_error" | |
message: "Received unknown parameter: metadata.phone" | |
param: "metadata.phone" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment