Conditional 2 failed for 470: [var3_plan_id] Equal To 1
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
/**
* Event handler for onCPayAfterPaymentStatusUpdateEvent, called each time an update occurs to the payment status of the payment basket
*
* Paypal status mappings:
* CB Unified status Paypal status
* Completed <-- Completed
* Processed <-- Processed, Canceled_Reversal
* Denied <-- Denied, Expired, Failed, Voided
* Refunded <-- Reversed, Refunded, Partially-Refunded
* Pending <-- Pending, In-Progress
* RegistrationCancelled <-- A new cb registration got cancelled by user (e.g. paypal cancel payment button)
*
* @param UserTable $user User paying the payment basket
* @param cbpaidPaymentBasket $paymentBasket Payment basket
* @param cbpaidSomething[] $subscriptions Subscriptions in the basket
* @param string $unifiedStatus New Unified status (see above)
* @param string $previousUnifiedStatus Previous Unified status (see above)
* @param string $eventType type of event (paypal type): 'web_accept', 'subscr_payment', 'subscr_signup', 'subscr_modify', 'subscr_eot', 'subscr_cancel', 'subscr_failed'
* @param cbpaidPaymentNotification $notification notification object of the payment
* @return void
*/
public function onCPayAfterPaymentStatusUpdateEvent( &$user, &$paymentBasket, &$subscriptions, $unifiedStatus, $previousUnifiedStatus, $eventType, &$notification ) {}
Please Log in to join the conversation.
krileon wrote: The phpdoc and expected values of onCPayAfterPaymentStatusUpdateEvent are as follows if you need to use it then.
krileon wrote: I've had no issues with IF usages in queries, but depends on your usage I guess. I would not use it to add to the SQL structure, but to condition a string value. Example as follows.
'[cb:if username="demo"]DEMO[/cb:if][cb:if username="admin"]ADMIN[/cb:if]'
Please Log in to join the conversation.
Please Log in to join the conversation.