Please Log in or Create an account to join the conversation.
You'd need to check the documentation below to find the available variables in a trigger. You can then substitute in those variables using [var1-10]. So using the above as example variable 3 is the plan id so you'd substitute it in with [var3] while variable 2 is the state the user is changing to for that plan so you'd substitute it in with [var2].My question is just: if I had wanted to figure that out for myself, where would I look? For example, while I understand -- only because of Kyle's example -- that [var3] must be the plan id and [var2] must be the status of the subscription (and have now looked and found the related fields in the #__cbsubs_subscriptions table) I don't know how I could have learned to use var3 or var2, or what "[var3]" and "[var2]" are in the context of the onCPayUserStateChange trigger, or that they are passed upon it in the first place, etc., on my own. Any suggestions?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.