本文整理汇总了PHP中Omnipay\Tests\GatewayTestCase::setUp方法的典型用法代码示例。如果您正苦于以下问题:PHP GatewayTestCase::setUp方法的具体用法?PHP GatewayTestCase::setUp怎么用?PHP GatewayTestCase::setUp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Omnipay\Tests\GatewayTestCase
的用法示例。
在下文中一共展示了GatewayTestCase::setUp方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
public function setUp()
{
parent::setUp();
$this->gateway = new HostedGateway($this->getHttpClient(), $this->getHttpRequest());
$this->gateway->setPaystationId('500600');
$this->gateway->setGatewayId('FOOBAR');
}
示例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('test@example.com');
$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');
}
示例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());
}
示例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');
}
示例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"}');
}
示例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('example@qq.com');
$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');
}
示例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');
}
示例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');
}
示例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);
}
示例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');
}
示例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);
}
示例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);
}
示例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');
}
示例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')));
}
示例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);
}