@@ 33-51 (lines=19) @@ | ||
30 | private $currency = 'USD'; |
|
31 | private $testMode = true; |
|
32 | ||
33 | public function setUp() |
|
34 | { |
|
35 | parent::setUp(); |
|
36 | ||
37 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
38 | $this->request->initialize([ |
|
39 | 'purse' => $this->purse, |
|
40 | 'secret' => $this->secret, |
|
41 | 'returnUrl' => $this->returnUrl, |
|
42 | 'cancelUrl' => $this->cancelUrl, |
|
43 | 'notifyUrl' => $this->notifyUrl, |
|
44 | 'description' => $this->description, |
|
45 | 'transactionId' => $this->transactionId, |
|
46 | 'sum' => $this->sum, |
|
47 | 'amount' => $this->amount, |
|
48 | 'currency' => $this->currency, |
|
49 | 'testMode' => $this->testMode, |
|
50 | ]); |
|
51 | } |
|
52 | ||
53 | public function testGetData() |
|
54 | { |
@@ 32-49 (lines=18) @@ | ||
29 | private $currency = 'USD'; |
|
30 | private $testMode = true; |
|
31 | ||
32 | public function setUp() |
|
33 | { |
|
34 | parent::setUp(); |
|
35 | ||
36 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
37 | $this->request->initialize([ |
|
38 | 'purse' => $this->purse, |
|
39 | 'secret' => $this->secret, |
|
40 | 'returnUrl' => $this->returnUrl, |
|
41 | 'cancelUrl' => $this->cancelUrl, |
|
42 | 'notifyUrl' => $this->notifyUrl, |
|
43 | 'description' => $this->description, |
|
44 | 'transactionId' => $this->transactionId, |
|
45 | 'amount' => $this->amount, |
|
46 | 'currency' => $this->currency, |
|
47 | 'testMode' => $this->testMode, |
|
48 | ]); |
|
49 | } |
|
50 | ||
51 | public function testSuccess() |
|
52 | { |