From 997d136b978d49e94144d3fb224fbd65b97a7a14 Mon Sep 17 00:00:00 2001 From: Kcppdevelopers Date: Fri, 26 May 2017 10:22:06 +0530 Subject: [PATCH] WooCommerce 3.0.x / PayPal for Woo 1.4.x Compatibility / AutoShip, ref #752 --- angelleye-includes/angelleye-utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angelleye-includes/angelleye-utility.php b/angelleye-includes/angelleye-utility.php index 82c5fa3dc..b23ffec9b 100644 --- a/angelleye-includes/angelleye-utility.php +++ b/angelleye-includes/angelleye-utility.php @@ -1443,7 +1443,7 @@ public static function angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_it public static function angelleye_is_save_payment_token($current, $order_id) { if( ( !empty($_POST['wc-'.$current->id.'-payment-token']) && $_POST['wc-'.$current->id.'-payment-token'] == 'new') || self::is_subscription($order_id) || self::angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_item() ) { - if( (!empty($_POST['wc-'.$current->id.'-new-payment-method']) && $_POST['wc-'.$current->id.'-new-payment-method'] == true) || $this->is_subscription($order_id) || self::angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_item()) { + if( (!empty($_POST['wc-'.$current->id.'-new-payment-method']) && $_POST['wc-'.$current->id.'-new-payment-method'] == true) || self::is_subscription($order_id) || self::angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_item()) { return true; } }