We need to check the reverse : that a payment method has been selected and that the basket is marked : pending, completed, processed or whateverActing on onCPayAfterPaymentBasketUpdated and checking for payment_status of NotInitiated. This is when the basket is first created before a payment method is even selected.
Please Log in or Create an account to join the conversation.
Such a state doesn't exist. The basket isn't updated when clicking the payment button. It's only updated after the payment processor has done something (e.g. payment is coming through). A pending basket means the basket has been processed and payment from the processor is pending. For 99% of payment processors it will never go payment since card payments are instant.We need to check the reverse : that a payment method has been selected and that the basket is marked : pending, completed, processed or whatever
You'll receive an email anytime that trigger fires and the basket payment_status is set to NotInitiated. I've no idea how many times that might be. You'll need to test that.If we check onCPayAfterPaymentBasketUpdated Not Egal To Notinitiated, we would receive an email at each different state ?
For offline payments it can be in a pending state. For other gateways it likely will never go pending. You can probably have 2 auto actions to cover both scenarios. 1 for offline payments and 1 for card payments. Example conditions for these actions as follows.So how can we trigger only one auto action (for emailing) when onCPayAfterPaymentBasketUpdated Not Egal To Notinitiated and Basket is either Pending, processed, completed ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, but you need to change the usage to REGEXP as follows.If we want to cover two gateways is it possible to separate them with a | like :
[var1_gateway_account] Equal To OFFLINE_GATEWAY_ID_1|OFFLINE_GATEWAY_ID_2
Please Log in or Create an account to join the conversation.