Function Hook_payment_gateway_paypal->handle_transaction
Definitions
sources/hooks/systems/payment_gateway/paypal.php
- Process a transaction after receiving its full key/value details from PayPal.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$data | array | required parameter | N/A | N/A | List of key=>value pairs from PayPal |
$silent_fail | boolean | False | N/A | N/A | Whether to return null on error rather than exiting |
Return
- A long tuple of collected data. Emulates some of the key variables of the PayPal IPN/PDT response (null: no transaction; only returned if $silent_fail is true)
- Type: ?array
- Set: N/A
- Range: N/A