Updating payment method email addresses in Stripe

You can't update the email address associated with a payment method in Stripe via their dashboard, you need to use the Stripe CLI

There currently isn’t a way within Stripe’s dashboard to update someone’s email address against a payment method. You can update the email address against the customer record, but there will be data in some webhooks that will include the email from the customer’s payment method.

To update the payment method email address you need to use the stripe CLI.

There is one command to run, but to run it we need three bits of information;

  • The ID of the payment method, you can get this from the dashboard when you look up the customer, it will look like pm_123AbC…
  • The new email address you want to be reflected against that payment method
  • Your API key on Stripe, it will look like sk_live_123ABC…

Once you have these, you’re ready to go.

stripe payment_methods update pm_123ABC -d "billing_details[email]=new@email.com" --api-key=sk_live_123ABC

This is calling the Stripe CLI tool and saying we want to update a payment_methods record. We pass in the record we want to update along with the new data.

This update should take effect immediately, and if you refresh the Customer view in Stripe and click into their payment method, you will see their new email address.

Recent posts View all

Freelancing

Getting the most out of your agency

Here are some tips based on years of working with, for, and as an agency on how to get the most out of any work you do.

VS Code Web Dev

Select multiple lines in VS Code

How to select multiple lines to edit at once within VS Code