WooCommerce Stripe: Add Custom MetaData

Remi | April 3, 2018 | in Tips

Adding custom metadata to Stripe is easy with WooCommerce Stripe. You can send any kind of value to Stripe from WooCommerce itself. Pretty handy right?

The result that we want to achieve is shown in the following screenshot:

To do so, all you have to do is to create a function that will be tied to the wc_stripe_payment_metadata filter.

In this example, the “Billing Company” name will be added to the array of fields sent to Stripe!

But you can add much more, here is a list of variables that you can use:

And if you want to add products details as well, you can do something like this:

The author

About the author Remi: Hey! My name is Rémi Corson, i'm a WordPress Expert Developer, i create high level themes and plugins, and i provide free stuff every week on this website!

Leave a reply