public function onSuccessPaymentTransaction( array $transaction, array $result ) : void

Fires after a successful transaction.


Description

It is possible to use this hook to track all the successful payment transactions.


Parameters

$transaction

(array)  An associative array containing the transaction details.

$result

(array)  An associative array containing the transaction result.

Return Value

None.


Example

/**
 * This hook is triggered after a successful transaction.
 *
 * @param   array  $transaction  The array holding the transaction details.
 * @param   array  $result       The transaction result array.
 *
 * @return  void
 */
public function onSuccessPaymentTransaction($transaction, $result)
{
    /**
     * @todo do stuff here
     */
}

Changelog

Version Description
1.8.1 Introduced.
Last Update: 2023-12-29 14:15
Helpful?