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

Web DevProductivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help

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.