diff --git a/classes/wc-gateway-paypal-express-angelleye.php b/classes/wc-gateway-paypal-express-angelleye.php index f853c10cd..e30cb2184 100644 --- a/classes/wc-gateway-paypal-express-angelleye.php +++ b/classes/wc-gateway-paypal-express-angelleye.php @@ -2018,76 +2018,6 @@ static function woocommerce_before_cart() { * Triggered from the 'woocommerce_proceed_to_checkout' action. * Displays the PayPal Express button. */ - static function woocommerce_paypal_express_checkout_button_angelleye_old() { - global $pp_settings, $pp_pro, $pp_payflow; - $payment_gateways = WC()->payment_gateways->get_available_payment_gateways(); - // Pay with Credit Card - unset($payment_gateways['paypal_pro']); - unset($payment_gateways['paypal_pro_payflow']); - - echo '
'; - - /** - * Show the paypal express checkout button in cart page when express checkout is enabled and cart total > 0 - * If show_on_cart is empty so it's value default to yes - */ - if (@$pp_settings['enabled'] == 'yes' && (empty($pp_settings['show_on_cart']) || $pp_settings['show_on_cart'] == 'yes') && 0 < WC()->cart->total) { - echo '
'; - if (empty($pp_settings['checkout_with_pp_button_type'])) - $pp_settings['checkout_with_pp_button_type'] = 'paypalimage'; - $angelleyeOverlay = ''; - switch ($pp_settings['checkout_with_pp_button_type']) { - case "textbutton": - if (!empty($pp_settings['pp_button_type_text_button'])) { - $button_text = $pp_settings['pp_button_type_text_button']; - } else { - $button_text = __('Proceed to Checkout', 'woocommerce'); - } - echo '
'; - echo '' . $button_text . ''; - echo $angelleyeOverlay; - echo '
'; - break; - case "paypalimage": - echo '
'; - echo ''; - echo "" . __("; - echo ""; - echo $angelleyeOverlay; - echo '
'; - break; - case "customimage": - $button_img = $pp_settings['pp_button_type_my_custom']; - echo '
'; - echo ''; - echo "" . __("; - echo ""; - echo $angelleyeOverlay; - echo '
'; - break; - } - - /** - * Displays the PayPal Credit checkout button if enabled in EC settings. - */ - if (isset($pp_settings['show_paypal_credit']) && $pp_settings['show_paypal_credit'] == 'yes') { - // PayPal Credit button - $paypal_credit_button_markup = '
'; - $paypal_credit_button_markup .= ''; - $paypal_credit_button_markup .= "Check out with PayPal Credit"; - $paypal_credit_button_markup .= ''; - $paypal_credit_button_markup .= $angelleyeOverlay; - $paypal_credit_button_markup .= '
'; - - echo $paypal_credit_button_markup; - } - ?> - -
"; - } - } - static function woocommerce_paypal_express_checkout_button_angelleye() { global $pp_settings; if (@$pp_settings['enabled'] == 'yes' && (empty($pp_settings['show_on_cart']) || $pp_settings['show_on_cart'] == 'yes') && 0 < WC()->cart->total) {