Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @cagsan

    You can use the filter wc_stripe_payment_intent_args to customize the description to whatever you would like it to be. Here is an example:

    add_filter('wc_stripe_payment_intent_args', function($args, $order){
    	$args['description'] = sprintf('%1$s, %2$s %3$s', $order->get_id(), $order->get_billing_first_name(), $order->get_billing_last_name());
    	return $args;
    }, 10, 2);

    In this example, the description would be 45678, John Smith.

    Kind Regards

    Thread Starter cagsan

    (@cagsan)

    Thanks a lot, but;

    The payment/order description here is looks like only for Stripe dashboard.I ordered my own product and what I see in my order description is different (in my bank’s app, in last transactions)

    Its like for example “Lubna Software +441526637 US”

    Is that editable ?

    • This reply was modified 10 months, 2 weeks ago by cagsan.
    Plugin Author Payment Plugins

    (@mrclayton)

    Is that editable ?

    You seem to be referring to the statement descriptor. That can be customized using the same filter.

    add_filter('wc_stripe_payment_intent_args', function($args, $order){
    	$args['statement_descriptor'] = 'Custom Value';
    	return $args;
    }, 10, 2);

    You will need to ensure your custom descriptor follows the Stripe rules. https://docs.stripe.com/api/payment_intents/object#payment_intent_object-statement_descriptor

    Kind Regards

    Thread Starter cagsan

    (@cagsan)

    Hi there,

    It just changed the first keyword. Phone number and country code added automatically. Is that can’t be changed ?

    Plugin Author Payment Plugins

    (@mrclayton)

    Is that can’t be changed ?

    I recommend that you contact Stripe customer support if you’re looking to make further changes. The statement_descriptor is what Stripe provides in the way of making descriptor changes via the API.

    Kind Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where to change automatically added order description ?’ is closed to new replies.