Пример #1
0
 /**
  * Transactions for this Test
  */
 private static function transactions()
 {
     return ['01-approved' => ['request' => ['id' => '1', 'litleTxnId' => '323462', 'amount' => '10100'], 'response' => TestHelper::makeCaptureXMLResponse(['id' => '1'], ['litleTxnId' => '323462', 'response' => '000', 'message' => 'Approved', 'responseTime' => '2013-07-01T11:37:04'])], '02-failed' => ['request' => ['id' => '2', 'litleTxnId' => '323462', 'amount' => '101.00'], 'response' => TestHelper::makeCaptureXMLResponse(['id' => '2'], ['litleTxnId' => '323462', 'response' => '305', 'message' => 'Expired Card', 'responseTime' => '2013-07-01T11:37:04', 'postDate' => null])], '03-missing-order-id' => ['request' => ['litleTxnId' => '1000000000000253', 'amount' => '250.00'], 'response' => TestHelper::makeCaptureXMLResponse([], [])], '04-missing-txnid' => ['request' => ['id' => '4', 'amount' => '250.00'], 'response' => TestHelper::makeCaptureXMLResponse([], [])], '05-missing-amount' => ['request' => ['id' => '5', 'litleTxnId' => '1000000000000253'], 'response' => TestHelper::makeCaptureXMLResponse([], [])]];
 }
Пример #2
0
 /**
  * Transaction Sources
  */
 private static function transactions()
 {
     return ['01-approved' => ['request' => ['litleTxnId' => '323462', 'amount' => '200.00', 'id' => '01'], 'response' => TestHelper::makeCreditXMLResponse([], ['litleTxnId' => '323462', 'orderId' => '10110', 'response' => '000', 'message' => 'Approved'])], '02-empty-txnid' => ['request' => ['litleTxnId' => '', 'amount' => '50.00', 'id' => '02'], 'response' => []], '03-missing-orderid' => ['request' => ['litleTxnId' => '23423', 'amount' => '50.00'], 'response' => []], '04-missing-amount' => ['request' => ['litleTxnId' => '23423', 'id' => '04'], 'response' => []]];
 }
 /**
  * Auth Transaction Data
  */
 private static function transactions()
 {
     return ['01-approved' => ['request' => ['amount' => 101.0, 'id' => '1', 'orderId' => '1', 'billToAddress' => ['name' => 'John Smith', 'addressLine1' => '1 Main St.', 'city' => 'Burlington', 'state' => 'MA', 'zip' => '01803-3747', 'country' => 'US'], 'token' => ['litleToken' => '1111000101039449', 'expDate' => '0114']], 'response' => TestHelper::makeAuthorizationXMLResponse(['id' => 1], ['response' => '000', 'message' => 'Approved', 'authCode' => '11111', 'fraudResult' => array('avsResult' => '02'), 'cardValidationResult' => 'M'])], '02-avs_failure' => ['request' => ['amount' => '101.00', 'id' => '2', 'orderId' => '2', 'billToAddress' => ['name' => 'John Smith', 'addressLine1' => '1 Main St.', 'city' => 'Burlington', 'state' => 'MA', 'zip' => '01803-3747', 'country' => 'US'], 'token' => ['litleToken' => '1111000101039449', 'expDate' => '0114']], 'response' => TestHelper::makeAuthorizationXMLResponse(['id' => '2'], ['response' => '000', 'message' => 'Approved', 'authCode' => '22222', 'fraudResult' => array('avsResult' => '20'), 'cardValidationResult' => 'M'])], '03-failed' => ['request' => ['amount' => '10100', 'id' => '3', 'orderId' => '3', 'orderSource' => 'ecommerce', 'billToAddress' => ['name' => 'John Smith', 'addressLine1' => '1 Main St.', 'city' => 'Burlington', 'state' => 'MA', 'zip' => '01803-3747', 'country' => 'US'], 'token' => ['litleToken' => '1111000101039449', 'expDate' => '0114']], 'response' => TestHelper::makeAuthorizationXMLResponse(['id' => '3'], ['response' => '301', 'message' => 'Invalid Account Number', 'authCode' => '000000', 'fraudResult' => array('avsResult' => '10'), 'cardValidationResult' => 'M'])], '04-missing-order-id' => ['request' => ['amount' => 10100, 'token' => ['litleToken' => '1111000101039449', 'expDate' => '0114'], 'billToAddress' => []], 'response' => []], '05-missing-card-number' => ['request' => ['id' => '6', 'amount' => 10050, 'token' => ['expDate' => '0114'], 'billToAddress' => []], 'response' => []], '06-missing-address-zip' => ['request' => ['id' => '6', 'amount' => 10050, 'token' => ['litleToken' => '1111000101039449', 'expDate' => '0114'], 'billToAddress' => []], 'response' => []]];
 }
Пример #4
0
 /**
  * Transactions
  */
 private static function transactions()
 {
     return ['01-approved-for-cc' => ['request' => ['orderId' => '23423', 'accountNumber' => '235235252'], 'response' => TestHelper::makeRegisterTokenXMLResponse(['id' => '23423'], ['litleTxnId' => '23526612436', 'litleToken' => '4355236262', 'orderId' => '23423', 'response' => '000', 'bin' => '123456', 'type' => 'VI', 'message' => 'Approved'])], '02-approved-for-registrationid' => ['request' => ['orderId' => '23423', 'paypageRegistrationId' => '235235252'], 'response' => TestHelper::makeRegisterTokenXMLResponse(['id' => '23423'], ['litleTxnId' => '23526612436', 'litleToken' => '4355236262', 'orderId' => '23423', 'response' => '000', 'bin' => '123456', 'type' => 'VI', 'message' => 'Approved'])], '03-missing-orderid' => ['request' => ['accountNumber' => '23525151521251'], 'response' => []], '04-missing-account-and-registration' => ['request' => ['orderId' => '23423'], 'response' => []], '05-both-account-and-registration-exception' => ['request' => ['orderId' => '23423', 'accountNumber' => '2352525252', 'paypageRegistrationId' => '2352525225'], 'response' => []]];
 }
 /**
  * Transactions Used in this Test
  */
 private static function transactions()
 {
     return ['01-approved' => ['request' => ['id' => 1, 'litleTxnId' => 472743, 'amount' => 500], 'response' => TestHelper::makeAuthReversalXMLResponse(['id' => 1], ['litleTxnId' => '472743', 'response' => '000', 'message' => 'Approved'])], '02-missing-txnid' => ['request' => ['orderId' => 12415], 'response' => []]];
 }