@@ 72-80 (lines=9) @@ | ||
69 | * @return void |
|
70 | * @throws LocalizedException |
|
71 | */ |
|
72 | protected function sendPayoneDebit(InfoInterface $payment, $amount) |
|
73 | { |
|
74 | $aResponse = $this->debitRequest->sendRequest($this, $payment, $amount); |
|
75 | if ($aResponse['status'] == 'ERROR') { |
|
76 | throw new LocalizedException(__($aResponse['errorcode'].' - '.$aResponse['customermessage'])); |
|
77 | } elseif (!$aResponse) { |
|
78 | throw new LocalizedException(__('Unkown error')); |
|
79 | } |
|
80 | } |
|
81 | ||
82 | /** |
|
83 | * Method handling the capture request and the response |
|
@@ 90-98 (lines=9) @@ | ||
87 | * @return void |
|
88 | * @throws LocalizedException |
|
89 | */ |
|
90 | protected function sendPayoneCapture(InfoInterface $payment, $amount) |
|
91 | { |
|
92 | $aResponse = $this->captureRequest->sendRequest($this, $payment, $amount); |
|
93 | if ($aResponse['status'] == 'ERROR') {// request returned an error |
|
94 | throw new LocalizedException(__($aResponse['errorcode'].' - '.$aResponse['customermessage'])); |
|
95 | } elseif (!$aResponse) {// response not existing |
|
96 | throw new LocalizedException(__('Unkown error')); |
|
97 | } |
|
98 | } |
|
99 | ||
100 | /** |
|
101 | * Method handling the authorization request and the response |