• Resolved Zee

    (@zaffarn)


    Hi

    Firstly, you plugin rocks, I have tried to search the whole web that would be able to support MoTo for stripe, and yours did it. well done.

    Now, is there a way we can add order number to the stripe description, currently the out-of-box stripe plugins is able to send the order number for each payment as description, is there a way we can do that with your plugin.

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

    (@bfl)

    Thank you for the kind words!

    You can use this code snippet:

    add_filter( 'woo_mp_stripe_charge_request', function ( $request, $order ) {
        $request['description'] = 'Order #' . $order->get_order_number();
    
        return $request;
    }, 10, 2 );
    Thread Starter Zee

    (@zaffarn)

    Thanks, will this snippet add the Order number to Stripe statement descriptor or to Stripe Description ?

    Plugin Author bfl

    (@bfl)

    It will customize the payment description for the dashboard, not the statement descriptor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add order number to the stripe description’ is closed to new replies.