Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Then probably acting on onCPayAfterPaymentBasketUpdated and checking if the baskets status is pending would work. The variables for that trigger are as follows.We just want the email to be sent as soon as the basket is marked at least as pending.
/**
* Event handler for onCPayAfterPaymentBasketUpdated, called each time a payment basket has been (re)computed and stored to database
*
* @param cbpaidPaymentBasket $paymentBasket Payment basket
* @param cbpaidPaymentItem[] $paymentItems Payment items in the basket
* @param cbpaidPaymentTotalizer[] $paymentTotalizers Payment totalizers in the basket
* @return void
*/
public function onCPayAfterPaymentBasketUpdated( $paymentBasket, $paymentItems, $paymentTotalizers )
I don't know what to advise. It's trial and error getting the right CB Auto Actions usage. I've never configured what you're wanting so I can't offer much advise on the matter. CBSubs may not have a trigger for the usage you're trying to create.That's just what we want to avoid, in order to get one mail only if the basket is at least marked as pending.
Please Log in to join the conversation.
Please Log in to join the conversation.
Correct.However when we use gateway such as Ingenico, it seems like the basket is not marked as pending but directly marked as completed by CBsubs as the payment is made right away
Acting on onCPayAfterPaymentBasketUpdated and checking for payment_status of NotInitiated. This is when the basket is first created before a payment method is even selected.Do you have a workaround for this ?
A basket is not always marked pending. It is only marked pending if the payment is pending. In a lot of cases that'll never happenWhat we want to achieve is to trigger something as soon as the basket is at minimum marked as Pending.
Please Log in to join the conversation.