Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
krileon wrote: onCPayUserStateChange is triggered any time a subscription state changes. This could be from unpaid to active, expired to renewed, or active to cancelled, etc..
Please Log in to join the conversation.
global $_PLUGINS;
$_PLUGINS->registerFunction('onCPayUserStateChange', 'onCPayUserStateChange', 'LimeSurveyOnPay' );
$_PLUGINS->registerFunction('onBeforeUserProfileDisplay','test','LimeSurveyOnPay');
class LimeSurveyOnPay extends cbTabHandler {
public function test() {
error_log("test"); // This works when user profile is shown
}
public function onCPayUserStateChange( &$user, $status, $planId, $replacedPlanId, &$integrationParams, $cause, $reason, /** @noinspection PhpUnusedParameterInspection */ $now, &$subscription ) {
error_log("onCPayUserStateChange"); // This does not work when payment is done
}
}
Please Log in to join the conversation.
Please Log in to join the conversation.