From dbb11b5898d2febdaf7b86080f505e1fa98d51c8 Mon Sep 17 00:00:00 2001 From: Juerd Waalboer Date: Mon, 16 Jan 2023 04:00:20 +0100 Subject: [PATCH] Document hook_checkout_prepare --- lib/RevBank/Plugins.pod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/RevBank/Plugins.pod b/lib/RevBank/Plugins.pod index 6b7652a..8d3868a 100644 --- a/lib/RevBank/Plugins.pod +++ b/lib/RevBank/Plugins.pod @@ -156,9 +156,13 @@ item going into the cart! Be careful to avoid infinite loops if you add new stuff. +=item hook_checkout_prepare($class, $cart, $user, $transaction_id, @) + +Called when the transaction is about to be processed. In this phase, the cart and its entries can still be manipulated. + =item hook_checkout($class, $cart, $user, $transaction_id, @) -Called when the transaction is finalized, before accounts are updated. +Called when the transaction is finalized, before accounts are updated. The cart and cart entries must not be changed. =item hook_checkout_done($class, $cart, $user, $transaction_id, @)