@@ 35-55 (lines=21) @@ | ||
32 | protected $time = '2015-12-22 11:07:12'; |
|
33 | protected $sign = 'ACm/nwG2yH1y3EVWIriFz4xP3icbqihbAr+06nAsgcU='; |
|
34 | ||
35 | public function setUp() |
|
36 | { |
|
37 | parent::setUp(); |
|
38 | ||
39 | $httpRequest = new HttpRequest([], [ |
|
40 | 'ik_co_id' => $this->purse, |
|
41 | 'ik_trn_id' => $this->transactionId, |
|
42 | 'ik_desc' => $this->description, |
|
43 | 'ik_am' => $this->amount, |
|
44 | 'ik_cur' => $this->currency, |
|
45 | 'ik_inv_prc' => $this->time, |
|
46 | 'ik_sign' => $this->sign, |
|
47 | 'ik_inv_st' => $this->state, |
|
48 | ]); |
|
49 | ||
50 | $this->request = new CompletePurchaseRequest($this->getHttpClient(), $httpRequest); |
|
51 | $this->request->initialize([ |
|
52 | 'purse' => $this->purse, |
|
53 | 'secret' => $this->secret, |
|
54 | ]); |
|
55 | } |
|
56 | ||
57 | public function testGetData() |
|
58 | { |
@@ 27-46 (lines=20) @@ | ||
24 | protected $purse = '62B97027-5260-1442-CF1A-7BDC16454400'; |
|
25 | protected $sign = 'V0VYdl/G3aHvoilH69DcKMaKkghmi5BVkGc9FZfy6No='; |
|
26 | ||
27 | public function setUp() |
|
28 | { |
|
29 | parent::setUp(); |
|
30 | ||
31 | $httpRequest = new HttpRequest([], [ |
|
32 | 'ik_shop_id' => $this->purse, |
|
33 | 'ik_payment_id' => $this->transactionId, |
|
34 | 'ik_payment_desc' => $this->description, |
|
35 | 'ik_payment_amount' => $this->amount, |
|
36 | 'ik_payment_timestamp' => $this->time, |
|
37 | 'ik_sign_hash' => $this->sign, |
|
38 | 'ik_payment_state' => $this->state, |
|
39 | ]); |
|
40 | ||
41 | $this->request = new OldCompletePurchaseRequest($this->getHttpClient(), $httpRequest); |
|
42 | $this->request->initialize([ |
|
43 | 'purse' => $this->purse, |
|
44 | 'secret' => $this->secret, |
|
45 | ]); |
|
46 | } |
|
47 | ||
48 | public function testGetData() |
|
49 | { |