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

PHP Tests\GatewayTestCase类代码示例

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

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



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

示例1: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new HostedGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPaystationId('500600');
     $this->gateway->setGatewayId('FOOBAR');
 }
开发者ID:burnbright,项目名称:omnipay-paystation,代码行数:7,代码来源:HostedGatewayTest.php


示例2: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $card = new CreditCard($this->getValidCard());
     $card->setBillingAddress1('Wall street');
     $card->setBillingAddress2('Wall street 2');
     $card->setBillingCity('San Luis Obispo');
     $card->setBillingCountry('US');
     $card->setBillingPostcode('93401');
     $card->setBillingPhone('1234567');
     $card->setBillingState('CA');
     $card->setShippingAddress1('Shipping Wall street');
     $card->setShippingAddress2('Shipping Wall street 2');
     $card->setShippingCity('San Luis Obispo');
     $card->setShippingCountry('US');
     $card->setShippingPostcode('93401');
     $card->setShippingPhone('1234567');
     $card->setShippingState('CA');
     $card->setCompany('Test Business name');
     $card->setEmail('[email protected]');
     $this->purchaseOptions = array('amount' => '95.63', 'card' => $card, 'customerId' => '9966441');
     $this->captureOptions = array('amount' => '10.00', 'transactionReference' => '9988775');
     $this->voidOptions = array('accountNumber' => '12345678', 'storeId' => 'test', 'storePassword' => 'test', 'transactionReference' => '115147689');
     $this->storedDataOptions = array('amount' => '95.63', 'customerId' => '9966441', 'transactionReference' => '244530120');
 }
开发者ID:andrewkrug,项目名称:repucaution,代码行数:26,代码来源:GatewayTest.php


示例3: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new TwoPartyGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSecureHash(md5('example'));
     $this->options = array('amount' => '10.00', 'transactionId' => 12345, 'card' => $this->getValidCard());
 }
开发者ID:magnolia61,项目名称:nz.co.fuzion.omnipaymultiprocessor,代码行数:7,代码来源:TwoPartyGatewayTest.php


示例4: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ExpressGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return', 'cancelUrl' => 'https://www.example.com/cancel');
     $this->voidOptions = array('transactionReference' => 'ASDFASDFASDF');
 }
开发者ID:delatbabel,项目名称:omnipay-paypal,代码行数:7,代码来源:ExpressGatewayTest.php


示例5: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new DirectGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->purchaseOptions = array('amount' => '10.00', 'transactionId' => '123', 'card' => $this->getValidCard(), 'returnUrl' => 'https://www.example.com/return');
     $this->captureOptions = array('amount' => '10.00', 'transactionId' => '123', 'transactionReference' => '{"SecurityKey":"JEUPDN1N7E","TxAuthNo":"4255","VPSTxId":"{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}","VendorTxCode":"438791"}');
 }
开发者ID:andrewkrug,项目名称:repucaution,代码行数:7,代码来源:DirectGatewayTest.php


示例6: setUp

    public function setUp()
    {
        parent::setUp();
        $this->gateway = new MobileExpressGateway($this->getHttpClient(), $this->getHttpRequest());
        $this->gateway->setPartner('20880127040');
        $this->gateway->setKey('sc1n78r0faswga7jjrpf6o');
        $this->gateway->setSellerEmail('[email protected]');
        $this->gateway->setNotifyUrl('https://www.example.com/notify');
        $this->gateway->setReturnUrl('https://www.example.com/return');
        $this->gateway->setShowUrl('https://www.example.com/return1');
        $this->gateway->setPrivateKey('-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQDELAccoy5epvo9TEKr4sXLVNbM0ZXAu24G9z/k2D3SHtFuONCh
H1O5nF73332hSA1k1x/nexGNAMlot/H6IlucdRaL8zHcSA5AKVw0iCnD9BoVnXCG
tElayPXQeLgtEP5FAJ9Ba1w28UWTgkgTj8dAFwYxADiAMm9i4LfWMtay0wIDAQAB
AoGAdxtASivtqHx7bSJTTKeIblcZgAw0f2uDwHj4a0q75krd361RRrKNlCGUK62f
SoBD2Zkf/tzjIBh9MT6WBcg8lCZ1UaNxwmXoyZ76G3IrjeJd02foRd648v663Top
fTjoKjv2KrzSmUu2Km4uE+NZqFSL+Jd1z0DwHbhfd0I8BGECQQDvCg7muPcEUi7o
3GpK0QVsk8EzP1Q8fdlebpr+FcCvfL5uTMIY6z27fO4p0dONJL8s9gV7r464XekP
KnfImBnRAkEA0hdScmQaZuZLUsJwhWWPRmYraJ3FsplvPJ5opt+zeemgiW2sxOfx
cVY2eFSt0qstmqau/FbSFRjCyrs8hlAHYwJAezorLmPh65dWWXLvVLxmWG/fJEVW
K30RJq5MNnoOSCk9nmzxjpkOzO19+YgSz+tGpq35a6a4I3E+KTRSZdWLUQJAaMPa
iFKk29VRkHaHt+26Mcf3M5cho/thfiAcXcLF9DBtrrpzYkmrm/H6/ax0dc6I0kr2
jb0ZzA1p7cDK4Mt9swJACh0wFnEQvfFBVUZo/zWW5nEBnVQ4l1QhfG6DoWJJA866
jdamyj2vQOFHLE2qpD+wprkUa86FJsdaEcuKjUl1lw==
-----END RSA PRIVATE KEY-----');
        $this->options = array('out_trade_no' => '2014010122390001', 'subject' => 'test', 'total_fee' => '0.01');
    }
开发者ID:pingzonglangji,项目名称:omnipay-alipay,代码行数:27,代码来源:MobileExpressGatewayTest.php


示例7: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setCallbackPassword('bar123');
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return');
 }
开发者ID:magnolia61,项目名称:nz.co.fuzion.omnipaymultiprocessor,代码行数:7,代码来源:GatewayTest.php


示例8: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantCode('ABCXYZ');
     $this->gateway->setAuthenticationCode('a;sldkfjasdf;aladjs');
 }
开发者ID:burnbright,项目名称:omnipay-poli,代码行数:7,代码来源:GatewayTest.php


示例9: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new FatzebraGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->card = new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123'));
     $this->options = array('amount' => '10.00', 'transactionId' => '123412341234', 'card' => $this->card);
 }
开发者ID:delatbabel,项目名称:omnipay-fatzebra,代码行数:7,代码来源:GatewayTest.php


示例10: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setTestMode(true);
     $this->options = array("userId" => "24a58d3c-4774-48bb-803a-b0ccc6b2d8d5", "paymentMethodId" => "c4ec7ad4-5b20-456a-8ab5-5ad5c2300a17", "destinationAccountId" => "23535718-e3a9-4b13-a28c-85f0838083b1", "code" => "global.payments.other", "amount" => '10.00', "username" => '32b53506-d3b2-405a-8c83-9b5c82b67575', "password" => 'test');
 }
开发者ID:rentmoola,项目名称:omnipay-rentmoola,代码行数:7,代码来源:GatewayTest.php


示例11: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPurse($this->purse);
     $this->gateway->setSecret($this->secret);
     $this->gateway->setTestMode($this->testMode);
 }
开发者ID:hiqdev,项目名称:omnipay-ecoin,代码行数:8,代码来源:GatewayTest.php


示例12: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new ConnectGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setSharedSecret('96MbdNvxTa');
     $this->gateway->setStoreId('1120540155');
     $this->options = array('amount' => '13.00', 'returnUrl' => 'https://www.example.com/return', 'card' => $this->getValidCard(), 'transactionId' => 'abc123', 'currency' => 'GBP', 'customerId' => 54321);
 }
开发者ID:Skintillion,项目名称:omnipay-firstdata,代码行数:8,代码来源:GatewayTest.php


示例13: setUp

 protected function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setShopId(0);
     $this->gateway->setMerchantId('0123456');
     $this->gateway->setMerchantKey('b36d8259346eaddb3c03236b37ad3a1d7a67cec6');
 }
开发者ID:fruitcakestudio,项目名称:omnipay-sisow,代码行数:8,代码来源:GatewayTest.php


示例14: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setApiKey('2F822Rw39fx762MaV7Yy86jXGTC7sCDy');
     $products = [['product-code' => 'SKU-123', 'description' => 'test', 'commodity-code' => 'abc', 'unit-of-measure' => 'lbs', 'unit-cost' => '5.00', 'quantity' => 1, 'total-amount' => 7.22, 'tax-amount' => 0.0, 'tax-rate' => 1.0, 'discount-amount' => 1.0, 'discount-rate' => 1.0, 'tax-type' => 'sales', 'alternate-tax-id' => '12345'], ['product-code' => 'SKU-12345', 'description' => 'test', 'commodity-code' => 'abc', 'unit-of-measure' => 'lbs', 'unit-cost' => '5.00', 'quantity' => 1, 'total-amount' => 7.22, 'tax-amount' => 0.0, 'tax-rate' => 1.0, 'discount-amount' => 1.0, 'discount-rate' => 1.0, 'tax-type' => 'sales', 'alternate-tax-id' => '12345']];
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return', 'cilentIp' => '127.0.0.1', 'products' => $products, 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123', 'issueNumber' => '5', 'startMonth' => '4', 'startYear' => '2013')));
 }
开发者ID:SynerskillsTeam,项目名称:omnipay-cocard,代码行数:8,代码来源:GatewayTest.php


示例15: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setPurse($this->purse);
     $this->gateway->setSignKey($this->signKey);
     $this->gateway->setTestKey($this->testKey);
 }
开发者ID:hiqdev,项目名称:omnipay-interkassa,代码行数:8,代码来源:GatewayTest.php


示例16: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setAccountNumber('123456');
     $this->gateway->setSecretWord('secret');
     $this->options = array('amount' => '10.00', 'returnUrl' => 'https://www.example.com/return');
 }
开发者ID:omnipay,项目名称:2checkout,代码行数:8,代码来源:GatewayTest.php


示例17: setUp

 public function setUp()
 {
     parent::setUp();
     $wsdlFile = __DIR__ . '/Mock/AlliedWalletSoapClient.wsdl';
     // fwrite(STDERR, "WDSLFile = $wsdlFile\n");
     $this->mockSoapClient = $this->getMockFromWsdl($wsdlFile, 'AlliedWalletSoapClient');
     $this->gateway = new SoapGateway($this->getHttpClient(), $this->getHttpRequest(), $this->mockSoapClient);
 }
开发者ID:delatbabel,项目名称:omnipay-alliedwallet,代码行数:8,代码来源:SoapGatewayTest.php


示例18: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new IdealGateway($this->getHttpClient(), $this->getHttpRequest());
     // Test token was found on https://www.pay.nl/webshops/plugins
     $this->gateway->setApiToken('4830f1a5be689901d095ab8af595a9839ce7adb3');
     $this->gateway->setServiceId('SL-7378-6230');
 }
开发者ID:hpolthof,项目名称:omnipay-paynl,代码行数:8,代码来源:IdealGatewayTest.php


示例19: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setMerchantId('foo');
     $this->gateway->setPassword('bar');
     $this->options = array('amount' => '10.00', 'currency' => 'NOK', 'transactionId' => '123', 'returnUrl' => 'https://www.example.com/return');
 }
开发者ID:andrewkrug,项目名称:repucaution,代码行数:8,代码来源:GatewayTest.php


示例20: setUp

 public function setUp()
 {
     parent::setUp();
     $this->gateway = new RestGateway($this->getHttpClient(), $this->getHttpRequest());
     $this->gateway->setToken('TEST-TOKEN-123');
     $this->gateway->setTokenExpires(time() + 600);
     $this->options = array('amount' => '10.00', 'card' => new CreditCard(array('firstName' => 'Example', 'lastName' => 'User', 'number' => '4111111111111111', 'expiryMonth' => '12', 'expiryYear' => '2016', 'cvv' => '123')));
 }
开发者ID:andrewkrug,项目名称:repucaution,代码行数:8,代码来源:RestGatewayTest.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP Tests\TestCase类代码示例发布时间:2022-05-23
下一篇:
PHP Omnipay\Omnipay类代码示例发布时间: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