| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | 1 | public function getData() |
|
| 8 | { |
||
| 9 | |||
| 10 | $data = [ |
||
| 11 | 1 | "gtpay_cust_id"=>$this->getCustomerId(), |
|
| 12 | 1 | "gtpay_cust_name"=>$this->getCustomerName(), |
|
| 13 | 1 | "gtpay_mert_id"=>$this->getMerchantId(), |
|
| 14 | 1 | "gtpay_hash" => $this->getTransactionHash(), |
|
| 15 | 1 | "gtpay_tranx_id" =>$this->getTransactionId(), |
|
| 16 | 1 | "gtpay_tranx_noti_url" => $this->getNotifyUrl(), |
|
| 17 | 1 | "gtpay_tranx_amt" => $this->getAmountInteger(), |
|
| 18 | 1 | "gtpay_tranx_curr" => $this->getCurrencyNumeric(), |
|
| 19 | |||
| 20 | ]; |
||
| 21 | |||
| 22 | 1 | if ($this->getGatewayName()) { |
|
| 23 | 1 | $data["gtpay_gway_name"] = $this->getGatewayName(); |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | return $data; |
|
| 27 | } |
||
| 28 | |||
| 35 |