| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function getData() |
||
| 17 | 3 | { |
|
| 18 | 3 | $this->validate( |
|
| 19 | 3 | 'purse', |
|
| 20 | 3 | 'amount', 'currency', 'description', |
|
| 21 | 'returnUrl', 'cancelUrl', 'notifyUrl' |
||
| 22 | ); |
||
| 23 | |||
| 24 | 3 | 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->getAmount(), |
|
| 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 | 'charset' => 'utf-8', |
||
| 36 | ]; |
||
| 37 | } |
||
| 38 | 2 | ||
| 44 |