krileon wrote: I've no idea where you're calling this from. Is it from a CB plugin, CBSubs plugin, or is it from outside of CB? If it's from outside of CB you need to first load CB API then load CBs plugins.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
c_schmitz wrote: Another important question: How to fire the event programmatically? Otherwise I would have to do a "real" payment each time to test the function, which would be slow.
Please Log in or Create an account to join the conversation.
You can't simulate a trigger without writing a bunch of code to ensure the appropriate variables are passed. Use the Dummy gateway to do testing in CBSubs to test the triggers and workflows.Another important question: How to fire the event programmatically? Otherwise I would have to do a "real" payment each time to test the function, which would be slow.
Please Log in or Create an account to join the conversation.
krileon wrote: CB plugin and CBSubs plugins can both act on that trigger fine. As I didn't write your plugin or code I've no idea if there's something outside of the code snippet you provided that's a problem. For example if the plugin isn't published or accessible then it won't act on the trigger.
You can't simulate a trigger without writing a bunch of code to ensure the appropriate variables are passed. Use the Dummy gateway to do testing in CBSubs to test the triggers and workflows.Another important question: How to fire the event programmatically? Otherwise I would have to do a "real" payment each time to test the function, which would be slow.
Please Log in or Create an account to join the conversation.