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

VersionDescription
1.6 Introduced.
Last Update: 2021-10-08 14:38
Helpful?