Skip to content

Instantly share code, notes, and snippets.

@maxrice
Created July 6, 2022 21:07
Show Gist options
  • Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.
Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.
Remove store name from merchant_ref field for First Data Payeezy
<?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