change payment description in stripe account dashboard
-
In the stripe account payment table (the stripe account, not in the wp). There is a description field where displays the description like this :
Order XXX From My SIte
I don’t know how stripe generate that. My question is can I change this field from our end?
Actually, I have added prefix to the order number, but Stripe not getting the order number, instead Stripe just use the original Order ID. All I want is to use the Order Number in this description field.
I found there is a filter
wc_stripe_order_meta_data
, is this the field that in charge for the order details?
Can I use this to change the order Id in the description?
Like eg:add_filter('wc_stripe_order_meta_data', 'change_strip_desc',20,2); function change_strip_desc($meta_data, $order ){ $meta_data['order_id'] = $order->get_order_number(); return $meta_data; }
Thanks
- The topic ‘change payment description in stripe account dashboard’ is closed to new replies.