Is there a way to prevent payment transaction from being saved ? (ex. out of stock)
Say for example the user is on his way to checkout :
- the user chooses a payment method, one that redirects to an external gateway ;
- the user stays on that external page for some time ;
- A business rule makes the order's content expire meanwhile ;
- therefore the payment, even if authorized must not be accepted.
Is there a way to reject the payment transaction ? a hook or a rule's action maybe ?
Comments
Ok I get it thanks ! Any chance to see a hook_commerce_payment_authorize_transaction($order, $transaction) in future versions ?