public function PayPalCheckoutClient::reAuthorizePayment in Commerce PayPal 7.2
Reauthorizes an authorized PayPal account payment, by ID.
Parameters
$authorization_id: The PayPal-generated ID of the authorized payment to reauthorize.
array $parameters: (optional An array of parameters to pass as the request body.
Return value
string[] The API response JSON converted to an associative array.
File
- modules/
checkout/ lib/ PayPalCheckoutClient.php, line 265 - Defines a class for consuming the PayPal Checkout API.
Class
- PayPalCheckoutClient
- Defines the PayPalCheckoutClient class.
Code
public function reAuthorizePayment($authorization_id, array $parameters = array()) {
return $this
->submitRequest('POST', sprintf('v2/payments/authorizations/%s/reauthorize', $authorization_id), $parameters);
}