Function Hook_payment_gateway_paypal->handle_ipn_transaction

Definitions

sources/hooks/systems/payment_gateway/paypal.php

  • Handle IPN's. The function may produce output, which would be returned to the Payment Gateway. The function may do transaction verification.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$silent_fail boolean required parameter N/A N/A Return null on failure rather than showing any error message. Used when not sure a valid & finalised transaction is in the POST environment, but you want to try just in case (e.g. on a redirect back from the gateway).

Return

  • A long tuple of collected data. Emulates some of the key variables of the PayPal IPN response (null: no transaction; will only return null when $silent_fail is set).
  • Type: ?array
  • Set: N/A
  • Range: N/A