| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 17 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 3 | public function getData() |
|
| 17 | { |
||
| 18 | 3 | $this->validate( |
|
| 19 | 3 | 'purse', |
|
| 20 | 3 | 'amount', 'currency', 'description', |
|
| 21 | 3 | 'returnUrl', 'cancelUrl', 'notifyUrl' |
|
| 22 | 3 | ); |
|
| 23 | |||
| 24 | return [ |
||
| 25 | 3 | 'cmd' => '_xclick', |
|
| 26 | 3 | 'bn' => 'PP-BuyNowBF:btn_paynowCC_LG.gif:NonHostedGuest', |
|
| 27 | 3 | 'item_name' => $this->getDescription(), |
|
| 28 | 3 | 'amount' => $this->getSum(), |
|
| 29 | 3 | 'currency_code' => strtoupper($this->getCurrency()), |
|
| 30 | 3 | 'business' => $this->getPurse(), |
|
| 31 | 3 | 'notify_url' => $this->getNotifyUrl(), |
|
| 32 | 3 | 'return' => $this->getReturnUrl(), |
|
| 33 | 3 | 'cancel_return' => $this->getCancelUrl(), |
|
| 34 | 3 | 'item_number' => $this->getTransactionId(), |
|
| 35 | 3 | ]; |
|
| 36 | } |
||
| 37 | |||
| 43 |