Hello
I have an issue that I cannot solve with a CBsubs integration.
I use the plugin with onCPayAfterPaymentStatusUpdateEvent to check the status of a basket and transfer the data to our invoicing component.
It works well except when the basked is canceled because this trigger the plugin anyway.
In order to check I use :
Code:
// we check if the payment basket has been initiated or canceled
if($paymentBasket->payment_status == "NotInitiated" || !$paymentBasket) {
return;
}
This works fine for NoInitiated but not for canceling a basket which triggers it anyway.
I tried different things with $paymentBasket->payment_status with no success
Could you help me on this and tell me what happens when a basket is canceled and how to get the event ?
thanks