Support » Plugin: WooCommerce PayPal Payments » Paid Orders Sending On-Hold and Processing Emails

  • Resolved ProActive

    (@sholly2)


    We have just upgraded to this new plugin and notice that when a customer pays via PayPal both the On-Hold and Processing emails are triggered.

    Notes:
    Awaiting payment. Order status changed from Pending payment to On hold.
    July 18, 2021 at 2:31 pm

    Order status changed from On hold to Processing.
    July 18, 2021 at 2:31 pm

    A check of the outgoing email log confirms both emails are sent.

    This is not the desired behaviour, neither the previous plugin (WooCommerce PayPal Checkout Gateway) nor any of our other payment gateways do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @sholly2

    When on hold and one processing then all is working fine because WooCommerce creates the order and sends a confirmation mail about it no matter if the client paid or not. You can turn this off under WooCommerce > Emails.

    But with the next version, we will make here some adjustments so the on-hold email will not be sent when using PayPal Payment.

    Have a nice day
    Kind regards
    Andreas`

    Same problem here, Woocommerce 5.5.1 has disabled standard PayPal gateway, so I ended up using this plugin.
    I don’t want the On-Hold email to be fired because they are linked to Cheque payment method and sends totally different information. I can’t disable the On-Hold email because I still need this email to be sent. But not with Paypal On Hold status.

    Found a solution to stop On Hold emails when paying with Paypal.
    Add this snippet to functions.php

    add_filter( 'woocommerce_email_recipient_customer_on_hold_order', 'stop_on_hold_order_notification_for_specified_payment', 10, 2 );
    
    function stop_on_hold_order_notification_for_specified_payment( $recipient, $order ) {
        
       if ( $order->get_payment_method() == 'ppcp-gateway' ) {
           $recipient = '';
       }
       return $recipient;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paid Orders Sending On-Hold and Processing Emails’ is closed to new replies.