WooCommerce Stripe: Add Custom MetaData

by

in

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:

One response to “WooCommerce Stripe: Add Custom MetaData”

  1. swarz.stein

    Hello,

    I want to know the discount PER ITEM. How can I do it. I have searched a lot. Please help!

    Thanks!

Leave a Reply