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:
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!
Get more stuff like this
in your inbox
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Thank you for subscribing.
Something went wrong.