New hook: checkout_done
This commit is contained in:
parent
60b50d6e42
commit
4ad7129805
2 changed files with 7 additions and 1 deletions
|
@ -114,6 +114,8 @@ sub checkout {
|
|||
RevBank::Users::update($account, $sum, $transaction_id);
|
||||
}
|
||||
|
||||
RevBank::Plugins::call_hooks("checkout_done", $self, $user,$transaction_id);
|
||||
|
||||
$self->empty;
|
||||
|
||||
sleep 1; # Ensure new timestamp/id for new transaction
|
||||
|
|
|
@ -249,7 +249,11 @@ Be careful to avoid infinite loops if you add new stuff.
|
|||
|
||||
=item hook_checkout $class, $cart, $user, $transaction_id
|
||||
|
||||
Called when the transaction is finalized.
|
||||
Called when the transaction is finalized, before accounts are updated.
|
||||
|
||||
=item hook_checkout $class, $cart, $user, $transaction_id
|
||||
|
||||
Called when the transaction is finalized, after accounts were updated.
|
||||
|
||||
=item hook_reject $class, $plugin, $reason, $abort
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue