Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | public function getData() |
||
33 | { |
||
34 | $this->validate('merchantId', 'transactionId', 'sign', 'returnUrl', 'errorUrl', 'cancelUrl'); |
||
35 | |||
36 | $data = array( |
||
37 | 'merchantId' => $this->getMerchantId(), |
||
38 | 'refno' => $this->getTransactionId(), |
||
39 | 'amount' => 0, |
||
40 | 'currency' => $this->getCurrency(), |
||
41 | 'sign' => $this->getSign(), |
||
42 | 'useAlias' => 'yes' |
||
43 | ); |
||
44 | |||
45 | $data['successUrl'] = $this->getReturnUrl(); |
||
46 | $data['cancelUrl'] = $this->getCancelUrl(); |
||
47 | $data['errorUrl'] = $this->getErrorUrl(); |
||
48 | $data['cancelUrl'] = $this->getCancelUrl(); |
||
49 | |||
50 | return $data; |
||
51 | } |
||
52 | |||
63 |