Skip to content

Commit

Permalink
American Express Unsupported - Blocking when it shouldn't, ref #485
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jun 21, 2016
1 parent 8e04e47 commit 14951c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-pro-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public function validate_fields()

$card_type = AngellEYE_Utility::card_type_from_account_number($card->number);

if ($card_type == 'amex' && (get_woocommerce_currency() != 'USD' || get_woocommerce_currency() != 'AUD')) {
if ($card_type == 'amex' && (get_woocommerce_currency() != 'USD' && get_woocommerce_currency() != 'AUD')) {
throw new Exception(__('Your processor is unable to process the Card Type in the currency requested. Please try another card type', 'paypal-for-woocommerce'));
}

Expand Down
2 changes: 1 addition & 1 deletion classes/wc-gateway-paypal-pro-payflow-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function process_payment( $order_id ) {

$card_type = AngellEYE_Utility::card_type_from_account_number($card_number);

if($card_type == 'amex' && (get_woocommerce_currency() != 'USD' || get_woocommerce_currency() != 'AUD')) {
if($card_type == 'amex' && (get_woocommerce_currency() != 'USD' && get_woocommerce_currency() != 'AUD')) {
throw new Exception( __( 'Your processor is unable to process the Card Type in the currency requested. Please try another card type', 'paypal-for-woocommerce' ) );
}

Expand Down

0 comments on commit 14951c1

Please sign in to comment.