| @@ 37-58 (lines=22) @@ | ||
| 34 | protected $time = '2015-12-22 11:07:12'; | |
| 35 | protected $sign = 'ACm/nwG2yH1y3EVWIriFz4xP3icbqihbAr+06nAsgcU='; | |
| 36 | ||
| 37 | public function setUp() | |
| 38 |     { | |
| 39 | parent::setUp(); | |
| 40 | ||
| 41 | $httpRequest = new HttpRequest([], [ | |
| 42 | 'ik_co_id' => $this->purse, | |
| 43 | 'ik_trn_id' => $this->transactionId, | |
| 44 | 'ik_desc' => $this->description, | |
| 45 | 'ik_am' => $this->amount, | |
| 46 | 'ik_cur' => $this->currency, | |
| 47 | 'ik_inv_prc' => $this->time, | |
| 48 | 'ik_sign' => $this->sign, | |
| 49 | 'ik_inv_st' => $this->state, | |
| 50 | ]); | |
| 51 | ||
| 52 | $this->request = new CompletePurchaseRequest($this->getHttpClient(), $httpRequest); | |
| 53 | $this->request->initialize([ | |
| 54 | 'purse' => $this->purse, | |
| 55 | 'signAlgorithm' => $this->signAlgorithm, | |
| 56 | 'signKey' => $this->signKey, | |
| 57 | ]); | |
| 58 | } | |
| 59 | ||
| 60 | public function testGetData() | |
| 61 |     { | |
| @@ 27-47 (lines=21) @@ | ||
| 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 | 'signAlgorithm' => $this->signAlgorithm, | |
| 45 | 'signKey' => $this->signKey, | |
| 46 | ]); | |
| 47 | } | |
| 48 | ||
| 49 | public function testGetData() | |
| 50 |     { | |