Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
We've the below trigger documentation that can at least give you an idea what variables are available to a trigger.Is there a reference of what var's are used for what?
For that trigger specifically the variables are as follows.How do I find out what to use if I need more cbsubs info?
/**
* Called at each change of user subscription state due to a plan activation or deactivation
*
* @param UserTable $user The user owning the $subscription with that $planId
* @param string $status New status: 'A'=Active, 'X'=Expired, 'C'=Cancelled
* @param int $planId Plan Id which is changing status
* @param int $replacedPlanId Replaced Plan Id in case of an upgrade
* @param ParamsInterface $integrationParams Integration parameters for that plan $planId
* @param string $cause 'PaidSubscription' (first activation only), 'SubscriptionActivated' (renewals, cancellation reversals), 'SubscriptionDeactivated', 'Denied'
* @param string $reason 'N' new subscription, 'R' renewal, 'U'=update )
* @param int $now Unix time
* @param cbpaidSomething $subscription Subscription/Donation/Merchandise record
* @param int $autorenewed 0: not auto-renewing (manually renewed), 1: automatically renewed (if $reason == 'R')
* @return void
*/
public function onCPayUserStateChange( $user, $status, $planId, $replacedPlanId, $integrationParams, $cause, $reason, $now, $subscription, $autorenewed )
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.