Function Hook_payment_gateway_paypal->handle_pdt_transaction

Definitions

sources/hooks/systems/payment_gateway/paypal.php

  • Handle PDT'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
  • Returns: array

Returns

  • A long tuple of collected data. Emulates some of the key variables of the PayPal PDT response (null: no transaction, error, or PDT not configured).
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Handle PDT's. The function may produce output, which would be returned to the Payment Gateway. The function may do transaction verification.
 *
 * @return ?array A long tuple of collected data. Emulates some of the key variables of the PayPal PDT response (null: no transaction, error, or PDT not configured).
 */

public function handle_pdt_transaction() : ?array