Created
July 6, 2022 21:07
-
-
Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.
Remove store name from merchant_ref field for First Data Payeezy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// remove Store name from merchant_ref field for First Data Payeezy | |
add_filter( 'wc_payment_gateway_first_data_payeezy_credit_card_get_order_base', function( $order ) { | |
$order->description = sprintf( 'Order #%1$s', $order->get_order_number() ); | |
return $order; | |
}, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment