Your cart is empty!
Failure Transaction
do_action( 'vikrestaurants_fail_payment_transaction', mixed $dummy, array $transaction, array $result )
Fires after a failed transaction.
Description
It is possible to use this hook to track all the payment transactions that faced an error.
Parameters
- $dummy
-
(mixed) Internal environment argument. Always ignore it.
- $transaction
-
(array) An associative array containing the transaction details.
- $result
-
(array) An associative array containing the transaction result.
Example
/**
* This hook is triggered after a failed transaction.
*
* @param mixed $dummy Internal environment argument.
* @param array $transaction The array holding the transaction details.
* @param array $result The transaction result array.
*/
add_action('vikrestaurants_fail_payment_transaction', function($dummy, $transaction, $result)
{
/**
* @todo do stuff here
*/
}, 10, 3);
Changelog
Version | Description |
---|---|
1.0 | Introduced. |
Last Update: 2021-01-24
Helpful?