@@ 151-159 (lines=9) @@ | ||
148 | * |
|
149 | * @return array |
|
150 | */ |
|
151 | public function doAuthorization($authorization_id, $amount, $data = []) |
|
152 | { |
|
153 | $this->post = collect($data)->merge([ |
|
154 | 'AUTHORIZATIONID' => $authorization_id, |
|
155 | 'AMT' => $amount, |
|
156 | ]); |
|
157 | ||
158 | return $this->doPayPalRequest('DoAuthorization'); |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * Function to perform DoVoid PayPal API operation. |
|
@@ 169-176 (lines=8) @@ | ||
166 | * |
|
167 | * @return array |
|
168 | */ |
|
169 | public function doVoid($authorization_id, $data = []) |
|
170 | { |
|
171 | $this->post = collect($data)->merge([ |
|
172 | 'AUTHORIZATIONID' => $authorization_id, |
|
173 | ]); |
|
174 | ||
175 | return $this->doPayPalRequest('DoVoid'); |
|
176 | } |
|
177 | ||
178 | /** |
|
179 | * Function to perform CreateBillingAgreement PayPal API operation. |