Skip to content
Nabil SEMAOUNE edited this page Jun 11, 2018 · 5 revisions

This is a technical FAQ arround PayZen payment plugin for WooCommerce. It tries to give simple reponses for frequently asked questions to make the plugin customizable for some specific merchant needs.

How to use custom order status for paid orders?

If you want to use custom order status (whether added manually or through a third party plugin), you need to edit class-wc-gateway-payzen.php file and to add your status(es) after code 'completed' => 'Complete' (line 40). Do not forget to add a comma (,) at the end of each line. It will look like that :

    private static $success_order_statues = array(
        'on-hold' => 'On Hold',
        'processing' => 'Processing',
        'completed' => 'Complete', // add comma here
        'status_code' => 'English status label' // your status here
    );

How can I disable payment details added by PayZen plugin in order e-mail sent to buyer?

Edit file class-wc-gateway-payzen.php and comment the code below in the class constructor (by adding // at the line beginning):

    add_action('woocommerce_email_after_order_table', array($this, 'payzen_add_order_email_payment_result'), 10, 3);