• Resolved TC

    (@chopperstwisted)


    I’m having trouble with the way the payment methods are posted to the sales. I use services such as Webgility, Onesaas or Connex to import woocommerce orders into quickbooks online. The problem I’m having with your plugin is that since I made the switch, these services cannot recognize the payment methods because they include card details so they are different each time. I’ve battled with them about it and how they don’t seem interested in changing. I believe they are using the meta_key _payment_method_title and they should be using _payment_method. I tried to get them to use these terms.

    meta_key
    _payment_method

    meta_value
    braintree_applepay (Apple Pay)
    braintree_cc (Credit Card)
    braintree_paypal (PayPal)
    braintree_venmo (Venmo)
    braintree_googlepay (Google Pay)

    Anyway, I wanted to ask if you could add some additional terms in the Credit Card Display for Apple Pay, Venmo, Google Pay and Credit Cards. If each of these had the terms in parenthesis above, the payment method name on the order will be the same each time and allow the other software to match these each time. I would greatly appreciate it!
    The other changes you have made have worked great and I’m very happy with your level of service!
    Thank you

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

    (@mrclayton)

    Hi @chopperstwisted,

    Thank you for contacting us. The developers of those solutions should be using the _payment_method meta_key as you have correctly pointed out.

    I will make a note to include a filter that makes adding custom formats easier. In the meantime there are several ways you can control how the _payment_method_title meta_key outputs.

    WooCommerce provides a filter for this key so you can control how it displays. Here is an example:

    add_filter('woocommerce_order_get_payment_method_title', function($title, $order){
        switch($order->get_payment_method()){
            case 'braintree_cc':
                $title = '(Credit Card)';
                break;
            case 'braintree_applepay':
                $title = '(Apple Pay)';
                break;
        }
        return $title;
    }, 10, 2);

    You can make the $title value to be any value you want.

    Kind Regards,

    Thread Starter TC

    (@chopperstwisted)

    Thank you! This is what I ended up using and it worked perfectly. I removed the parenthesis.

    add_filter('woocommerce_order_get_payment_method_title', function($title, $order){
        switch($order->get_payment_method()){
            case 'braintree_cc':
                $title = 'Credit Card';
                break;
            case 'braintree_applepay':
                $title = 'Apple Pay';
                break;
            case 'braintree_googlepay':
                $title = 'Google Pay';
                break;
            case 'braintree_venmo':
                $title = 'Venmo';
                break;
            case 'braintree_paypal':
                $title = 'PayPal';
                break;
        }
        return $title;
    }, 10, 2);
    • This reply was modified 5 years, 5 months ago by TC.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Payment method names’ is closed to new replies.