From: Laury GvR Date: Thu, 28 Jan 2016 19:00:08 +0000 (-0500) Subject: Remove american express availability X-Git-Tag: v1.0.4~1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8626424a1f0b5f41ea43d2f832df0d5fc05f8bde;p=WP-Plugins%2FGlmPayments.git Remove american express availability --- diff --git a/anet_php_sdk/tests/AuthorizeNetAIM_Test.php b/anet_php_sdk/tests/AuthorizeNetAIM_Test.php index 573327d..ecadd44 100755 --- a/anet_php_sdk/tests/AuthorizeNetAIM_Test.php +++ b/anet_php_sdk/tests/AuthorizeNetAIM_Test.php @@ -327,13 +327,6 @@ class AuthorizeNetAIM_Sandbox_Test extends PHPUnit_Framework_TestCase $this->assertTrue($response->approved); } - - public function testAmex() - { - $sale = new AuthorizeNetAIM; - $response = $sale->authorizeAndCapture(rand(1, 100), '370000000000002', '04/16'); - $this->assertTrue($response->approved); - } public function testDiscover() { diff --git a/anet_php_sdk/tests/report.html b/anet_php_sdk/tests/report.html index 764ae3d..b1ac397 100755 --- a/anet_php_sdk/tests/report.html +++ b/anet_php_sdk/tests/report.html @@ -1 +1 @@ -

AuthorizeNet_SOAP_

AuthorizeNetAIM_Sandbox_

AuthorizeNetAIM_Live_

AuthorizeNetARB_

AuthorizeNetCIM_

AuthorizeNetCP_

AuthorizeNetDPM_

AuthorizeNetSIM_

AuthorizeNetTD_

\ No newline at end of file +

AuthorizeNet_SOAP_

AuthorizeNetAIM_Sandbox_

AuthorizeNetAIM_Live_

AuthorizeNetARB_

AuthorizeNetCIM_

AuthorizeNetCP_

AuthorizeNetDPM_

AuthorizeNetSIM_

AuthorizeNetTD_

\ No newline at end of file diff --git a/includes/donate-display_1.php b/includes/donate-display_1.php index 40679f2..9f47e0d 100644 --- a/includes/donate-display_1.php +++ b/includes/donate-display_1.php @@ -469,7 +469,6 @@ function glm_payment_form() { - diff --git a/includes/payment-display.php b/includes/payment-display.php index 3b3c528..c882abe 100755 --- a/includes/payment-display.php +++ b/includes/payment-display.php @@ -503,7 +503,6 @@ function glm_payment_form() { - diff --git a/includes/payment-function.php b/includes/payment-function.php index 648d36b..4b8914b 100755 --- a/includes/payment-function.php +++ b/includes/payment-function.php @@ -98,12 +98,7 @@ function checkCreditCard($cardnumber, $cardname, &$errornumber, &$errortext) { // checkdigit Boolean to say whether there is a check digit // Don't forget - all but the last array definition needs a comma separator! - $cards = array(array('name' => 'AMEX', - 'length' => '15', - 'prefixes' => '34,37', - 'checkdigit' => true - ), - array('name' => 'Diners Club Carte Blanche', + $cards = array(array('name' => 'Diners Club Carte Blanche', 'length' => '14', 'prefixes' => '300,301,302,303,304,305', 'checkdigit' => true