Skip to content

Instantly share code, notes, and snippets.

@rootedsoftware
Created March 26, 2015 22:05
Show Gist options
  • Save rootedsoftware/1abfffd4544a8d438cf0 to your computer and use it in GitHub Desktop.
Save rootedsoftware/1abfffd4544a8d438cf0 to your computer and use it in GitHub Desktop.
Stripe update customer
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