| @@ 181-189 (lines=9) @@ | ||
| 178 | * |
|
| 179 | * @return array |
|
| 180 | */ |
|
| 181 | public function doAuthorization($authorization_id, $amount, $data = []) |
|
| 182 | { |
|
| 183 | $this->post = (new Collection($data))->merge([ |
|
| 184 | 'AUTHORIZATIONID' => $authorization_id, |
|
| 185 | 'AMT' => $amount, |
|
| 186 | ]); |
|
| 187 | ||
| 188 | return $this->doPayPalRequest('DoAuthorization'); |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * Function to perform DoVoid PayPal API operation. |
|
| @@ 199-206 (lines=8) @@ | ||
| 196 | * |
|
| 197 | * @return array |
|
| 198 | */ |
|
| 199 | public function doVoid($authorization_id, $data = []) |
|
| 200 | { |
|
| 201 | $this->post = (new Collection($data))->merge([ |
|
| 202 | 'AUTHORIZATIONID' => $authorization_id, |
|
| 203 | ]); |
|
| 204 | ||
| 205 | return $this->doPayPalRequest('DoVoid'); |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * Function to perform CreateBillingAgreement PayPal API operation. |
|