Looking for help?
< All Topics
Print

How to add custom payment method in POS

To do this, add this snippets code to your theme/function.php or any code snippets plugin and custom the method code , method name as you want


if(!function_exists('custom_payment_op_login_format_payment_data'))
{
    function custom_payment_op_login_format_payment_data($payment_methods){
        $payment_method_data = array(
            'code' => 'payment_code_here', // change to your method code
            'name' => 'Payment Method Name',// change to your method name
            'type' => 'offline',
            'hasRef' => true,
            'partial' => false,
            'description' => 'Payment Method Name description',// change to your method name description
            'online_type' => 'external',
            'offline_transaction' => 'no',
            'offline_order' => 'no'
        );
        $payment_methods[] = $payment_method_data;
        return $payment_methods;
    }
}
add_filter('op_pos_payment_method_list','custom_payment_op_login_format_payment_data',10,1);
Previous Hide all new order notice from website
Next How to add new product type display on POS.
Table of Contents
[elementor-template id="5546"]