Skip to content

Commit

Permalink
Auth & Capture Adjustments Necessary, ref #730
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed May 29, 2017
1 parent f65dd30 commit 4abbf56
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1555,18 +1555,14 @@ public static function angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_it
}

public static function angelleye_is_save_payment_token($current, $order_id) {
<<<<<<< HEAD
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) || self::is_subscription($order_id) || self::angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_item()) {
=======
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) || self::is_subscription($order_id) || self::angelleye_paypal_for_woo_wc_autoship_cart_has_autoship_item()) {
>>>>>>> 997d136b978d49e94144d3fb224fbd65b97a7a14
return true;
}
}
return false;
}


public static function is_subscription($order_id) {
return ( function_exists('wcs_order_contains_subscription') && ( wcs_order_contains_subscription($order_id) || wcs_is_subscription($order_id) || wcs_order_contains_renewal($order_id) ) );
Expand Down

0 comments on commit 4abbf56

Please sign in to comment.