| 1 | <?php | ||
| 13 | class PurchaseRequest extends AbstractRequest | ||
| 14 | { | ||
| 15 | 3 | public function getData() | |
| 16 |     { | ||
| 17 | 3 | $this->validate( | |
| 18 | 3 | 'purse', | |
| 19 | 3 | 'amount', 'currency', 'description', | |
| 20 | 3 | 'returnUrl', 'cancelUrl', 'notifyUrl' | |
| 21 | 3 | ); | |
| 22 | |||
| 23 | return [ | ||
| 24 | 3 | 'EPS_DESCRIPTION' => $this->getDescription(), | |
| 25 | 3 | 'EPS_GUID' => $this->getPurse(), | |
| 26 | 3 | 'EPS_AMOUNT' => $this->getAmount(), | |
| 27 | 3 | 'EPS_RESULT_URL' => $this->getNotifyUrl(), | |
| 28 | 3 | 'EPS_SUCCESS_URL' => $this->getReturnUrl(), | |
| 29 | 3 | 'EPS_FAIL_URL' => $this->getCancelUrl(), | |
| 30 | 3 | ]; | |
| 31 | } | ||
| 32 | |||
| 33 | 2 | public function sendData($data) | |
| 37 | } | ||
| 38 |