• Resolved fwlw

    (@fwlw)


    Hi.

    How can I pass order number or invoice number to the Statement Descriptor?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @fwlw

    Here is an example of how to modify the statement descriptor:

    add_filter('wc_stripe_payment_intent_args', function($args, $order){
    if ( \in_array( 'card', $args['payment_method_types'] ) ) {
    $args['statement_descriptor_suffix'] = 'Company' . $order->get_order_number();
    }else{
    $args['statement_descriptor'] = 'Company' . $order->get_order_number();
    }
    return $args;
    }, 10, 2);

    You can modify this example for your specific company name, etc.

    Kind Regards

    Thread Starter fwlw

    (@fwlw)

    Thanks. Is this also the descriptor the payer will see on his bank account?

    Plugin Author Clayton R

    (@mrclayton)

    Hi @fwlw

    Is this also the descriptor the payer will see on his bank account?

    Yes, the descriptor is what your customer sees on their bank transaction.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Statement Descriptor’ is closed to new replies.