Adding Stripe Fee to Internal Order Notifications
-
Hi,
Can someone help me get the transaction fee just to show up on our internal order notification email? Thanks!
I found this code on google, but it doesn’t work on this plugin:
add_action(‘woocommerce_email_after_order_table’, ‘show_stripe_fee’, 10, 4);
function show_stripe_fee($order, $sent_to_admin, $plain_text, $email) {
$fees = $order->get_meta(“_stripe_fee”);
if ( $email->id == ‘new_order’ ) {
printf(‘This order had a Stripe fees of $%s’, $fees);
}
}`
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding Stripe Fee to Internal Order Notifications’ is closed to new replies.