You are here

function hook_commerce_paypal_api_request_alter in Commerce PayPal 7.2

Allows modules to alter the name-value pair array for a PayPal API request before it is submitted.

Currently invoked for PayPal Payments Pro and Express Checkout. Modules implementing this hook may determine which payment method the API request is for by examining the $payment_method array passed as the last parameter.

Parameters

&$nvp: The name-value pair array for the API request.

$order: If available, the full order object the payment request is being submitted for; otherwise NULL.

$payment_method: The payment method instance array associated with this API request.

1 invocation of hook_commerce_paypal_api_request_alter()
commerce_paypal_api_request in ./commerce_paypal.module
Submits an API request to PayPal.

File

./commerce_paypal.api.php, line 79
Documents hooks provided by the PayPal modules.

Code

function hook_commerce_paypal_api_request_alter(&$nvp, $order, $payment_method) {

  // No example.
}