• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP sdk\LitleOnlineRequest类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: test_simple_captureGivenAuth_secondary_amount

 public function test_simple_captureGivenAuth_secondary_amount()
 {
     $hash_in = array('orderId' => '12344', 'amount' => '106', 'secondaryAmount' => '2000', 'authInformation' => array('authDate' => '2002-10-09', 'authCode' => '543216', 'authAmount' => '12345'), '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:shootandshare,项目名称:litle-sdk-for-php,代码行数:8,代码来源:CaptureGivenAuthFunctionalTest.php


示例17: test_simple_forceCapture_with_secondary_amount

 public function test_simple_forceCapture_with_secondary_amount()
 {
     $hash_in = array('merchantId' => '101', 'version' => '8.8', 'reportGroup' => 'Planets', 'litleTxnId' => '123456', 'orderId' => '12344', 'amount' => '106', 'secondaryAmount' => '2000', 'orderSource' => 'ecommerce', 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1210'));
     $initilaize = new LitleOnlineRequest();
     $forceCaptureResponse = $initilaize->forceCaptureRequest($hash_in);
     $response = XmlParser::getAttribute($forceCaptureResponse, 'litleOnlineResponse', 'response');
     $this->assertEquals('000', $response);
 }
开发者ID:shootandshare,项目名称:litle-sdk-for-php,代码行数:8,代码来源:ForceCaptureFunctionalTest.php


示例18: test_simple

 public function test_simple()
 {
     $hash_in = array('orderId' => '1', 'amount' => '2', 'orderSource' => 'ecommerce', 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1213', 'cardValidationNum' => '1213'));
     $initialize = new LitleOnlineRequest();
     $response = $initialize->unload($hash_in);
     $message = XmlParser::getAttribute($response, 'litleOnlineResponse', 'message');
     $this->assertEquals('Valid Format', $message);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:UnloadFunctionalTest.php


示例19: test_simple

 public function test_simple()
 {
     $hash_in = array('litleTxnId' => '123456789012345678');
     $initilaize = new LitleOnlineRequest();
     $refundReversalResponse = $initilaize->echeckVoidRequest($hash_in);
     $response = XmlParser::getAttribute($refundReversalResponse, 'litleOnlineResponse', 'response');
     $this->assertEquals('0', $response);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:RefundReversalFunctionalTest.php


示例20: test_amexAggregator

 public function test_amexAggregator()
 {
     $hash_in = array('amount' => '2000', 'orderId' => '12344', 'orderSource' => 'ecommerce', 'processingInstuctions' => array('bypassVelocityCheck' => 'yes'), 'card' => array('type' => 'VI', 'number' => '4100000000000000', 'expDate' => '1210'), 'amexAggregatorData' => array('sellerMerchantCategoryCode' => '1234', 'sellerId' => '1234Id'));
     $initilaize = new LitleOnlineRequest();
     $creditResponse = $initilaize->creditRequest($hash_in);
     $response = XmlParser::getNode($creditResponse, 'response');
     $this->assertEquals('000', $response);
 }
开发者ID:CartworksPlatform,项目名称:cartworksplatform,代码行数:8,代码来源:CreditFunctionalTest.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP TelegramBot\Request类代码示例发布时间:2022-05-23
下一篇:
PHP util\Validator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap