WooCommerce Stripe: Add Custom MetaData
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: