From 42d3a6e9c8089e2099cffa0ab8922be0f82ab75d Mon Sep 17 00:00:00 2001 From: Benji Spetter-Goldstein Date: Thu, 1 Aug 2019 16:05:57 -0400 Subject: [PATCH 1/5] added preliveStatus --- .../sdk/Test/certification/CertAlphaTest.php | 6 + .../functional/BatchRequestFunctionalTest.php | 120 ++++++++++++++++++ 2 files changed, 126 insertions(+) diff --git a/litle/sdk/Test/certification/CertAlphaTest.php b/litle/sdk/Test/certification/CertAlphaTest.php index 30837642..a88d71b8 100644 --- a/litle/sdk/Test/certification/CertAlphaTest.php +++ b/litle/sdk/Test/certification/CertAlphaTest.php @@ -36,8 +36,14 @@ // The voidRequest fails intermitently in many tests!! class CertAlphaTest extends \PHPUnit_Framework_TestCase { + private $preliveStatus = $_SERVER['preliveStatus']; + function test_1_Auth() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $auth_hash = array( 'url' => PRELIVE_URL, #'user'=> '12312', diff --git a/litle/sdk/Test/functional/BatchRequestFunctionalTest.php b/litle/sdk/Test/functional/BatchRequestFunctionalTest.php index f5a24a17..58850732 100644 --- a/litle/sdk/Test/functional/BatchRequestFunctionalTest.php +++ b/litle/sdk/Test/functional/BatchRequestFunctionalTest.php @@ -5,6 +5,7 @@ class BatchRequestFunctionalTest extends \PHPUnit_Framework_TestCase { private $direct; + private $preliveStatus; public function setUp() { @@ -12,11 +13,16 @@ public function setUp() if (!file_exists($this->direct)) { mkdir($this->direct); } + $this->preliveStatus = $_SERVER['preliveStatus']; } public function test_simpleAddTransaction() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -40,6 +46,9 @@ public function test_simpleAddTransaction() } function test_addSale() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -65,6 +74,9 @@ function test_addSale() public function test_addAuth() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -91,6 +103,9 @@ public function test_addAuth() public function test_addAuthReversal() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -117,6 +132,9 @@ public function test_addAuthReversal() public function test_addCredit() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -142,6 +160,9 @@ public function test_addCredit() public function test_addRegisterToken() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -166,6 +187,9 @@ public function test_addRegisterToken() public function test_addForceCapture() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -191,6 +215,9 @@ public function test_addForceCapture() public function test_addCapture() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -217,6 +244,9 @@ public function test_addCapture() public function test_addCaptureGivenAuth() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -242,6 +272,9 @@ public function test_addCaptureGivenAuth() public function test_addEcheckRedeposit() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -267,6 +300,9 @@ public function test_addEcheckRedeposit() public function test_addEcheckSale() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -292,6 +328,9 @@ public function test_addEcheckSale() public function test_addEcheckCredit() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -317,6 +356,9 @@ public function test_addEcheckCredit() public function test_addEcheckVerification() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -342,6 +384,9 @@ public function test_addEcheckVerification() public function test_addUpdateCardValidationNumOnTokenHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } $hash_in = array( 'card'=>array('type'=>'VI', @@ -368,6 +413,10 @@ public function test_addUpdateCardValidationNumOnTokenHash() public function test_addUpdateSubscriptionHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'subscriptionId'=>'1', 'planCode'=> '2', @@ -393,6 +442,10 @@ public function test_addUpdateSubscriptionHash() public function test_addCancelSubscriptionHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'subscriptionId'=>'1' ); @@ -408,6 +461,10 @@ public function test_addCancelSubscriptionHash() public function test_addCreatePlanHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'planCode'=>'1', 'name'=> '2', @@ -426,6 +483,10 @@ public function test_addCreatePlanHash() public function test_addUpdatePlanHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'planCode'=>'1', 'active'=>'false' @@ -442,6 +503,10 @@ public function test_addUpdatePlanHash() public function test_addActivateHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'orderId'=>'1', 'amount'=> '2', @@ -465,6 +530,10 @@ public function test_addActivateHash() } public function test_addDeactivateHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'orderId'=>'1', 'orderSource'=>'ECOMMERCE', @@ -486,6 +555,10 @@ public function test_addDeactivateHash() } public function test_addLoadHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'orderId'=>'1', 'amount'=> '2', @@ -509,6 +582,10 @@ public function test_addLoadHash() } public function test_addUnloadHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'orderId'=>'1', 'amount'=> '2', @@ -532,6 +609,10 @@ public function test_addUnloadHash() } public function test_addBalanceInquiryHash() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'orderId'=>'1', 'orderSource'=>'ECOMMERCE', @@ -554,6 +635,10 @@ public function test_addBalanceInquiryHash() public function test_mechaBatch() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $batch = new BatchRequest($this->direct); $hash_in = array( 'card'=>array('type'=>'VI', @@ -671,6 +756,10 @@ public function test_mechaBatch() } public function test_addAccountUpdate() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -691,6 +780,10 @@ public function test_addAccountUpdate() } public function test_addAccountUpdate_negative_with_transaction_before_accountUpdate() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + try { $hash_in = array( 'card'=>array('type'=>'VI', @@ -717,6 +810,9 @@ public function test_addAccountUpdate_negative_with_transaction_before_accountUp } public function test_addAccountUpdate_negative_with_transaction_after_accountUpdate() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } try { $hash_in = array( @@ -745,6 +841,10 @@ public function test_addAccountUpdate_negative_with_transaction_after_accountUpd public function test_isFull() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -766,6 +866,10 @@ public function test_isFull() } public function test_addTooManyTransactions() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -787,6 +891,10 @@ public function test_addTooManyTransactions() } public function test_addToClosedBatch() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -807,6 +915,10 @@ public function test_addToClosedBatch() } public function test_closeRequest() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', @@ -829,6 +941,10 @@ public function test_closeRequest() public function test_closeRequest_badFile() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $batch_request = new BatchRequest($this->direct); $batch_request->transaction_file = "/usr/NOPERMS"; @@ -840,6 +956,10 @@ public function test_closeRequest_badFile() public function test_getCountsAndAmounts() { + if(strtolower($this->preliveStatus) == 'down'){ + $this->markTestSkipped('Prelive is not available'); + } + $hash_in = array( 'card'=>array('type'=>'VI', 'number'=>'4100000000000000', From 46b689171ae3e15aec05a1ebdd8a79a2f8b6fdfe Mon Sep 17 00:00:00 2001 From: Benji Spetter-Goldstein Date: Thu, 1 Aug 2019 16:08:43 -0400 Subject: [PATCH 2/5] added preliveStatus --- litle/sdk/Test/certification/CertAlphaTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litle/sdk/Test/certification/CertAlphaTest.php b/litle/sdk/Test/certification/CertAlphaTest.php index a88d71b8..92bbc783 100644 --- a/litle/sdk/Test/certification/CertAlphaTest.php +++ b/litle/sdk/Test/certification/CertAlphaTest.php @@ -36,14 +36,14 @@ // The voidRequest fails intermitently in many tests!! class CertAlphaTest extends \PHPUnit_Framework_TestCase { - private $preliveStatus = $_SERVER['preliveStatus']; + private preliveStatus = $_SERVER['preliveStatus']; function test_1_Auth() { if(strtolower($this->preliveStatus) == 'down'){ $this->markTestSkipped('Prelive is not available'); } - + $auth_hash = array( 'url' => PRELIVE_URL, #'user'=> '12312', From 7858c48414324aa73b2a64e5f67beff7cc0e9416 Mon Sep 17 00:00:00 2001 From: Benji Spetter-Goldstein Date: Thu, 1 Aug 2019 16:17:21 -0400 Subject: [PATCH 3/5] fixed preliveStatus assignment --- litle/sdk/Test/certification/CertAlphaTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litle/sdk/Test/certification/CertAlphaTest.php b/litle/sdk/Test/certification/CertAlphaTest.php index 92bbc783..f0a3fcad 100644 --- a/litle/sdk/Test/certification/CertAlphaTest.php +++ b/litle/sdk/Test/certification/CertAlphaTest.php @@ -36,10 +36,11 @@ // The voidRequest fails intermitently in many tests!! class CertAlphaTest extends \PHPUnit_Framework_TestCase { - private preliveStatus = $_SERVER['preliveStatus']; + private $preliveStatus; function test_1_Auth() { + $this->preliveStatus = $_SERVER['preliveStatus']; if(strtolower($this->preliveStatus) == 'down'){ $this->markTestSkipped('Prelive is not available'); } From 4a836d66f4085cce32acf2179640343ec04c299a Mon Sep 17 00:00:00 2001 From: zxc8027 Date: Wed, 23 Oct 2019 15:10:56 -0400 Subject: [PATCH 4/5] Corrected proxy for testing --- .../sdk/Test/certification/CertAlphaTest.php | 34 +++++++++++++++++++ .../Test/certification/CertAuthReversal.php | 11 ++++++ .../certification/CertAuthenhancedTest.php | 18 ++++++++++ litle/sdk/Test/certification/CertBetaTest.php | 16 +++++++++ .../sdk/Test/certification/CertEcheckTest.php | 13 +++++++ .../sdk/Test/certification/CertTokenTest.php | 13 +++++++ 6 files changed, 105 insertions(+) diff --git a/litle/sdk/Test/certification/CertAlphaTest.php b/litle/sdk/Test/certification/CertAlphaTest.php index f0a3fcad..7c367dc9 100644 --- a/litle/sdk/Test/certification/CertAlphaTest.php +++ b/litle/sdk/Test/certification/CertAlphaTest.php @@ -47,6 +47,7 @@ function test_1_Auth() $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', #'user'=> '12312', 'orderId' => '1', 'amount' => '10100', @@ -74,6 +75,7 @@ function test_1_Auth() //test 1A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -84,6 +86,7 @@ function test_1_Auth() //test 1B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($captureResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -106,6 +109,7 @@ function test_1_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '1', 'amount' => '0', 'orderSource' => 'ecommerce', @@ -134,6 +138,7 @@ function test_1_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '1', 'amount' => '10010', 'orderSource' => 'ecommerce', @@ -159,6 +164,7 @@ function test_1_sale() $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -181,6 +187,7 @@ function test_2_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '2', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -210,6 +217,7 @@ function test_2_Auth() //test 2A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -220,6 +228,7 @@ function test_2_Auth() //test 2B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($captureResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -230,6 +239,7 @@ function test_2_Auth() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -273,6 +283,7 @@ function test_2_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '2', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -302,6 +313,7 @@ function test_2_sale() //test 2B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -312,6 +324,7 @@ function test_2_sale() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -324,6 +337,7 @@ function test_3_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '3', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -351,6 +365,7 @@ function test_3_Auth() //test 3A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -361,6 +376,7 @@ function test_3_Auth() //test 3B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($captureResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -371,6 +387,7 @@ function test_3_Auth() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -383,6 +400,7 @@ function test_3_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '3', 'amount' => '0', 'orderSource' => 'ecommerce', @@ -411,6 +429,7 @@ function test_3_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '3', 'amount' => '30030', 'orderSource' => 'ecommerce', @@ -438,6 +457,7 @@ function test_3_sale() //test 3B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -448,6 +468,7 @@ function test_3_sale() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -460,6 +481,7 @@ function test_4_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '4', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -485,6 +507,7 @@ function test_4_Auth() //test 4A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -495,6 +518,7 @@ function test_4_Auth() //test 4B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($captureResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -517,6 +541,7 @@ function test_4_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '4', 'amount' => '0', 'orderSource' => 'ecommerce', @@ -545,6 +570,7 @@ function test_4_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '4', 'amount' => '40040', 'orderSource' => 'ecommerce', @@ -570,6 +596,7 @@ function test_4_sale() //test 4B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -580,6 +607,7 @@ function test_4_sale() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -613,6 +641,7 @@ function test_5_auth() //test 5A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -623,6 +652,7 @@ function test_5_auth() //test 5B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($captureResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -645,6 +675,7 @@ function test_5_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '5', 'amount' => '0', 'orderSource' => 'ecommerce', @@ -668,6 +699,7 @@ function test_5_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '5', 'amount' => '50050', 'orderSource' => 'ecommerce', @@ -689,6 +721,7 @@ function test_5_sale() //test 5B $credit_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -699,6 +732,7 @@ function test_5_sale() // Intermittent behavior /*$void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($creditResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); diff --git a/litle/sdk/Test/certification/CertAuthReversal.php b/litle/sdk/Test/certification/CertAuthReversal.php index 0cde2700..81a36a83 100644 --- a/litle/sdk/Test/certification/CertAuthReversal.php +++ b/litle/sdk/Test/certification/CertAuthReversal.php @@ -37,6 +37,7 @@ public function test_32() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '32', 'amount' => '10010', 'orderSource' => 'ecommerce', @@ -63,6 +64,7 @@ public function test_32() //test 32A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -72,6 +74,7 @@ public function test_32() //test32B $authReversal_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets', 'amount' => '5005'); $initialize = new LitleOnlineRequest(); @@ -84,6 +87,7 @@ public function test_33() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '33', 'amount' => '20020', 'orderSource' => 'ecommerce', @@ -112,6 +116,7 @@ public function test_33() //test 33A $authReversal_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -124,6 +129,7 @@ public function test_34() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '34', 'amount' => '30030', 'orderSource' => 'ecommerce', @@ -150,6 +156,7 @@ public function test_34() //test 34A $authReversal_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -162,6 +169,7 @@ public function test_35() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '35', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -186,6 +194,7 @@ public function test_35() //test 35A $capture_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets', 'amount' => '5050'); $initialize = new LitleOnlineRequest(); @@ -195,6 +204,7 @@ public function test_35() //test35B $authReversal_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets', 'amount' => '5050'); $initialize = new LitleOnlineRequest(); @@ -222,6 +232,7 @@ public function test_36() //test 33A $authReversal_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($authorizationResponse, 'litleTxnId')), 'reportGroup' => 'planets', 'amount' => '10000'); $initialize = new LitleOnlineRequest(); diff --git a/litle/sdk/Test/certification/CertAuthenhancedTest.php b/litle/sdk/Test/certification/CertAuthenhancedTest.php index 4c12393d..24ad51ea 100644 --- a/litle/sdk/Test/certification/CertAuthenhancedTest.php +++ b/litle/sdk/Test/certification/CertAuthenhancedTest.php @@ -37,6 +37,7 @@ public function test_14() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '14', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -59,6 +60,7 @@ public function test_15() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '15', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -81,6 +83,7 @@ public function test_16() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '16', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -103,6 +106,7 @@ public function test_17() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '17', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -125,6 +129,7 @@ public function test_18() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '18', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -147,6 +152,7 @@ public function test_19() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '19', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -169,6 +175,7 @@ public function test_20() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '20', 'amount' => '3000', 'orderSource' => 'ecommerce', @@ -191,6 +198,7 @@ public function test_21() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '21', 'amount' => '5000', 'orderSource' => 'ecommerce', @@ -210,6 +218,7 @@ public function test_22() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '22', 'amount' => '5000', 'orderSource' => 'ecommerce', @@ -229,6 +238,7 @@ public function test_23() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '23', 'amount' => '5000', 'orderSource' => 'ecommerce', @@ -248,6 +258,7 @@ public function test_24() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '24', 'amount' => '5000', 'orderSource' => 'ecommerce', @@ -267,6 +278,7 @@ public function test_25() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '25', 'amount' => '5000', 'orderSource' => 'ecommerce', @@ -287,6 +299,7 @@ public function test_26() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '26', 'amount' => '18698', 'orderSource' => 'ecommerce', @@ -312,6 +325,7 @@ public function test_27() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '27', 'amount' => '18698', 'orderSource' => 'ecommerce', @@ -336,6 +350,7 @@ public function test_28() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '28', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -360,6 +375,7 @@ public function test_29() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '29', 'amount' => '18699', 'orderSource' => 'ecommerce', @@ -387,6 +403,7 @@ public function test_29() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '30', 'amount' => '20000', 'orderSource' => 'ecommerce', @@ -414,6 +431,7 @@ public function test_29() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '31', 'amount' => '25000', 'orderSource' => 'ecommerce', diff --git a/litle/sdk/Test/certification/CertBetaTest.php b/litle/sdk/Test/certification/CertBetaTest.php index 5e398638..8127d1f1 100644 --- a/litle/sdk/Test/certification/CertBetaTest.php +++ b/litle/sdk/Test/certification/CertBetaTest.php @@ -37,6 +37,7 @@ public function test_6_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '6', 'amount' => '60060', 'orderSource' => 'ecommerce', @@ -65,6 +66,7 @@ public function test_6_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '6', 'amount' => '60060', 'orderSource' => 'ecommerce', @@ -90,6 +92,7 @@ public function test_6_sale() $void_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => (XmlParser::getNode($saleResponse, 'litleTxnId')), 'reportGroup' => 'planets'); $initialize = new LitleOnlineRequest(); @@ -102,6 +105,7 @@ public function test_7_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '7', 'amount' => '70070', 'orderSource' => 'ecommerce', @@ -130,6 +134,7 @@ public function test_7_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '7', 'amount' => '70070', 'orderSource' => 'ecommerce', @@ -158,6 +163,7 @@ public function test_7_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '7', 'amount' => '70070', 'orderSource' => 'ecommerce', @@ -186,6 +192,7 @@ public function test_8_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '8', 'amount' => '80080', 'orderSource' => 'ecommerce', @@ -213,6 +220,7 @@ public function test_8_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '8', 'amount' => '80080', 'orderSource' => 'ecommerce', @@ -240,6 +248,7 @@ public function test_8_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '8', 'amount' => '80080', 'orderSource' => 'ecommerce', @@ -267,6 +276,7 @@ public function test_9_Auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '9', 'amount' => '90090', 'orderSource' => 'ecommerce', @@ -293,6 +303,7 @@ public function test_9_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '9', 'amount' => '90090', 'orderSource' => 'ecommerce', @@ -319,6 +330,7 @@ public function test_9_sale() { $sale_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '9', 'amount' => '90090', 'orderSource' => 'ecommerce', @@ -345,6 +357,7 @@ public function test_10() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '10', 'amount' => '40000', 'orderSource' => 'ecommerce', @@ -364,6 +377,7 @@ public function test_11() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '11', 'amount' => '60000', 'orderSource' => 'ecommerce', @@ -383,6 +397,7 @@ public function test_12() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '12', 'amount' => '50000', 'orderSource' => 'ecommerce', @@ -402,6 +417,7 @@ public function test_13() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '13', 'amount' => '15000', 'orderSource' => 'ecommerce', diff --git a/litle/sdk/Test/certification/CertEcheckTest.php b/litle/sdk/Test/certification/CertEcheckTest.php index eb49f026..b0171f38 100644 --- a/litle/sdk/Test/certification/CertEcheckTest.php +++ b/litle/sdk/Test/certification/CertEcheckTest.php @@ -38,6 +38,7 @@ public function test_37() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '37', 'amount' => '3001', 'orderSource' => 'telephone', @@ -59,6 +60,7 @@ public function test_38() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '38', 'amount' => '3002', 'orderSource' => 'telephone', @@ -81,6 +83,7 @@ public function test_39() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '39', 'amount' => '3003', 'orderSource' => 'telephone', @@ -104,6 +107,7 @@ public function test_40() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '40', 'amount' => '3004', 'orderSource' => 'telephone', @@ -128,6 +132,7 @@ public function test_41() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '41', 'amount' => '2008', 'orderSource' => 'telephone', @@ -150,6 +155,7 @@ public function test_42() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '42', 'amount' => '2004', 'orderSource' => 'telephone', @@ -171,6 +177,7 @@ public function test_43() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '43', 'amount' => '2007', 'orderSource' => 'telephone', @@ -191,6 +198,7 @@ public function test_43() // Test 48 $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => XMLParser::getNode($echeckSaleResponse, 'litleTxnId')); $initialize = new LitleOnlineRequest(); @@ -203,6 +211,7 @@ public function test_44() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '44', 'amount' => '2009', 'orderSource' => 'telephone', @@ -226,6 +235,7 @@ public function test_45() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '45', 'amount' => '1001', 'orderSource' => 'telephone', @@ -246,6 +256,7 @@ public function test_46() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '46', 'amount' => '1003', 'orderSource' => 'telephone', @@ -268,6 +279,7 @@ public function test_47() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '47', 'amount' => '1007', 'orderSource' => 'telephone', @@ -291,6 +303,7 @@ public function test_49() { $echeck_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'litleTxnId' => '2'); $initialize = new LitleOnlineRequest(); diff --git a/litle/sdk/Test/certification/CertTokenTest.php b/litle/sdk/Test/certification/CertTokenTest.php index e6b24edb..e7323ad4 100644 --- a/litle/sdk/Test/certification/CertTokenTest.php +++ b/litle/sdk/Test/certification/CertTokenTest.php @@ -37,6 +37,7 @@ public function test_50() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '50', 'accountNumber' => '4457119922390123'); @@ -53,6 +54,7 @@ public function test_51() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '51', 'accountNumber' => '4457119999999999'); @@ -66,6 +68,7 @@ public function test_52() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '52', 'accountNumber' => '4457119922390123'); @@ -82,6 +85,7 @@ public function test_53() #merchant is not authorized for echeck tokens { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '53', 'echeckForToken' => array( 'accNum' => '1099999998', @@ -99,6 +103,7 @@ public function test_54() #merchant is not authorized for echeck tokens { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '54', 'echeckForToken' => array('accNum' => '1022222102', 'routingNum' => '1145_7895')); @@ -112,6 +117,7 @@ public function test_55() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '55', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -131,6 +137,7 @@ public function test_56() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '56', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -146,6 +153,7 @@ public function test_57() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '57', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -165,6 +173,7 @@ public function test_59() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '59', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -182,6 +191,7 @@ public function test_60() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '60', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -200,6 +210,7 @@ function test_61() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '61', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -223,6 +234,7 @@ function test_62() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '62', 'amount' => '15000', 'orderSource' => 'ecommerce', @@ -246,6 +258,7 @@ function test_63() { $token_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '63', 'amount' => '15000', 'orderSource' => 'ecommerce', From 983f9c69765463f3d3fe9ad95b99b952f6ce6683 Mon Sep 17 00:00:00 2001 From: zxc8027 Date: Wed, 23 Oct 2019 15:20:06 -0400 Subject: [PATCH 5/5] Added missing proxy settings --- litle/sdk/Test/certification/CertAlphaTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litle/sdk/Test/certification/CertAlphaTest.php b/litle/sdk/Test/certification/CertAlphaTest.php index 7c367dc9..8b1e9d43 100644 --- a/litle/sdk/Test/certification/CertAlphaTest.php +++ b/litle/sdk/Test/certification/CertAlphaTest.php @@ -252,6 +252,7 @@ function test_2_avs() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '2', 'amount' => '10100', 'orderSource' => 'ecommerce', @@ -620,6 +621,7 @@ function test_5_auth() { $auth_hash = array( 'url' => PRELIVE_URL, + 'proxy' => '', 'orderId' => '5', 'amount' => '50050', 'orderSource' => 'ecommerce',