当前位置: 首页>>代码示例>>PHP>>正文


PHP sdk\LitleOnlineRequest类代码示例

本文整理汇总了PHP中litle\sdk\LitleOnlineRequest的典型用法代码示例。如果您正苦于以下问题:PHP LitleOnlineRequest类的具体用法?PHP LitleOnlineRequest怎么用?PHP LitleOnlineRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了LitleOnlineRequest类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: test_pos_missing_field

 public function test_pos_missing_field()
 {
     $hash_in = array('reportGroup' => 'Planets', 'orderId' => '12344', 'amount' => '106', 'orderSource' => 'ecommerce', 'pos' => array('entryMode' => '123'), 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1210'));
     $litleTest = new LitleOnlineRequest();
     $this->setExpectedException('InvalidArgumentException', 'Missing Required Field: /capability/');
     $retOb = $litleTest->authorizationRequest($hash_in);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:7,代码来源:AuthFunctionalTest.php

示例2: test_echeckRedepoist_missing_litleTxnId

 public function test_echeckRedepoist_missing_litleTxnId()
 {
     $hash_in = array('amount' => '123456', 'verify' => 'true', 'orderId' => '12345', 'orderSource' => 'ecommerce', 'echeckToken' => array('accType' => 'Checking', 'litleToken' => '1234565789012', 'routingNum' => '123456789', 'checkNum' => '123455'), 'billToAddress' => array('name' => 'Bob', 'city' => 'lowell', 'state' => 'MA', 'email' => 'litle.com'));
     $litleTest = new LitleOnlineRequest();
     $this->setExpectedException('InvalidArgumentException', 'Missing Required Field: /litleTxnId/');
     $retOb = $litleTest->echeckRedepositRequest($hash_in);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:7,代码来源:EcheckRedeopistFunctionalTest.php

示例3: test_token_echeck_missing_required

 public function test_token_echeck_missing_required()
 {
     $hash_in = array('merchantId' => '101', 'version' => '8.8', 'reportGroup' => 'Planets', 'orderId' => '12344', 'echeckForToken' => array('routingNum' => '132344565'));
     $litleTest = new LitleOnlineRequest();
     $this->setExpectedException('InvalidArgumentException', 'Missing Required Field: /accNum/');
     $retOb = $litleTest->registerTokenRequest($hash_in);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:7,代码来源:TokenFunctionalTest.php

示例4: test_simple_forceCapture_with_token

 public function test_simple_forceCapture_with_token()
 {
     $hash_in = array('merchantId' => '101', 'version' => '8.8', 'reportGroup' => 'Planets', 'litleTxnId' => '123456', 'orderId' => '12344', 'amount' => '106', 'orderSource' => 'ecommerce', 'token' => array('litleToken' => '123456789101112', 'expDate' => '1210', 'cardValidationNum' => '555', 'type' => 'VI'));
     $initilaize = new LitleOnlineRequest();
     $forceCaptureResponse = $initilaize->forceCaptureRequest($hash_in);
     $message = XmlParser::getAttribute($forceCaptureResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:ForceCaptureFunctionalTest.php

示例5: test_echeckSale_with_shipto

 public function test_echeckSale_with_shipto()
 {
     $hash_in = array('amount' => '123456', 'verify' => 'true', 'orderId' => '12345', 'orderSource' => 'ecommerce', 'echeck' => array('accType' => 'Checking', 'accNum' => '12345657890', 'routingNum' => '123456789', 'checkNum' => '123455'), 'billToAddress' => array('name' => 'Bob', 'city' => 'lowell', 'state' => 'MA', 'email' => 'litle.com'), 'shipToAddress' => array('name' => 'Bob', 'city' => 'lowell', 'state' => 'MA', 'email' => 'litle.com'));
     $initilaize = new LitleOnlineRequest();
     $echeckSaleResponse = $initilaize->echeckSaleRequest($hash_in);
     $response = XmlParser::getNode($echeckSaleResponse, 'response');
     $this->assertEquals('000', $response);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:EcheckSaleFunctionalTest.php

示例6: test_simple_echeckCredit_With_SecondaryAmount

 public function test_simple_echeckCredit_With_SecondaryAmount()
 {
     $hash_in = array('id' => 'id', 'litleTxnId' => '123456789012345678', 'secondaryAmount' => '100', 'amount' => '1000');
     $initilaize = new LitleOnlineRequest();
     $echeckCreditResponse = $initilaize->echeckCreditRequest($hash_in);
     $response = XmlParser::getNode($echeckCreditResponse, 'response');
     $this->assertEquals('001', $response);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:EcheckCreditFunctionalTest.php

示例7: test_simple

 public function test_simple()
 {
     $hash_in = array('id' => '1211', 'merchantId' => '101', 'version' => '8.14', 'reportGroup' => 'Planets', 'orderId' => '12344', 'litleToken' => '123456789101112', 'cardValidationNum' => '123');
     $initilaize = new LitleOnlineRequest();
     $updateCardValidationNumOnTokenResponse = $initilaize->updateCardValidationNumOnToken($hash_in);
     $message = XmlParser::getAttribute($updateCardValidationNumOnTokenResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:UpdateCardValidationNumOnTokenFunctionalTest.php

示例8: test_simple_capture_with_partial

 public function test_simple_capture_with_partial()
 {
     $hash_in = array('litleTxnId' => '1234567891234567891', 'patial' => 'true', 'amount' => '123');
     $initilaize = new LitleOnlineRequest();
     $captureResponse = $initilaize->captureRequest($hash_in);
     $message = XmlParser::getAttribute($captureResponse, 'litleOnlineResponse', 'response');
     $this->assertEquals('0', $message);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:CaptureFunctionalTest.php

示例9: test_simple

 public function test_simple()
 {
     $hash_in = array('subscriptionId' => '1', 'planCode' => '2', 'billToAddress' => array('addressLine1' => '3'), 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1213', 'cardValidationNum' => '1213'), 'billingDate' => '2013-12-17');
     $initialize = new LitleOnlineRequest();
     $updateSubscriptionResponse = $initialize->updateSubscription($hash_in);
     $message = XmlParser::getAttribute($updateSubscriptionResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:UpdateSubscriptionFunctionalTest.php

示例10: test_simple

 public function test_simple()
 {
     $hash_in = array('planCode' => '1', 'active' => 'false');
     $initialize = new LitleOnlineRequest();
     $updatePlanResponse = $initialize->updatePlan($hash_in);
     $message = XmlParser::getAttribute($updatePlanResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:UpdatePlanFunctionalTest.php

示例11: test_simple_credit_with_litleTxnId_AndSecondaryAmount

 public function test_simple_credit_with_litleTxnId_AndSecondaryAmount()
 {
     $hash_in = array('id' => 'id', 'reportGroup' => 'planets', 'litleTxnId' => '1234567891234567891', 'secondaryAmount' => '100');
     $initilaize = new LitleOnlineRequest();
     $creditResponse = $initilaize->creditRequest($hash_in);
     $message = XmlParser::getAttribute($creditResponse, 'litleOnlineResponse', 'response');
     $this->assertEquals("0", $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:CreditFunctionalTest.php

示例12: test_simple

 public function test_simple()
 {
     $hash_in = array('subscriptionId' => '2');
     $initialize = new LitleOnlineRequest();
     $cancelSubscriptionResponse = $initialize->cancelSubscription($hash_in);
     $message = XmlParser::getAttribute($cancelSubscriptionResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:CancelSubscriptionFunctionalTest.php

示例13: test_authInfo

 public function test_authInfo()
 {
     $hash_in = array('orderId' => '12344', 'amount' => '106', 'authInformation' => array('authDate' => '2002-10-09', 'authCode' => '543216', 'authAmount' => '12345', 'fraudResult' => array('avsResult' => '12', 'cardValidationResult' => '123', 'authenticationResult' => '1', 'advancedAVSResult' => '123')), 'orderSource' => 'ecommerce', 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1210'));
     $initilaize = new LitleOnlineRequest();
     $captureGivenAuthResponse = $initilaize->captureGivenAuthRequest($hash_in);
     $message = XmlParser::getNode($captureGivenAuthResponse, 'message');
     $this->assertEquals('Approved', $message);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:CaptureGivenAuthFunctionalTest.php

示例14: test_invalid_field

 public function test_invalid_field()
 {
     $hash_in = array('paypal' => array("payerId" => '123', "token" => '12321312', "transactionId" => '123123'), 'id' => '1211', 'orderId' => '2111', 'nonexistant' => 'novalue', 'reportGroup' => 'Planets', 'orderSource' => 'ecommerce', 'amount' => '123');
     $initilaize = new LitleOnlineRequest();
     $saleResponse = $initilaize->saleRequest($hash_in);
     $message = XmlParser::getNode($saleResponse, 'message');
     $this->assertEquals('Approved', $message);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:SaleFunctionalTest.php

示例15: test_simple

 public function test_simple()
 {
     $hash_in = array('planCode' => '1', 'name' => '2', 'intervalType' => 'MONTHLY', 'amount' => '1000');
     $initialize = new LitleOnlineRequest();
     $createPlanResponse = $initialize->createPlan($hash_in);
     $message = XmlParser::getAttribute($createPlanResponse, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:siscodev93,项目名称:litle-sdk-for-php,代码行数:8,代码来源:CreatePlanFunctionalTest.php


注:本文中的litle\sdk\LitleOnlineRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。