Skip to content

Instantly share code, notes, and snippets.

@maxrice
Created July 6, 2022 21:07
Show Gist options
  • Select an option

  • Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.

Select an option

Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.

Revisions

  1. maxrice created this gist Jul 6, 2022.
    8 changes: 8 additions & 0 deletions remove-store-name.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?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 );