CBsubs and manuel payment gateway

9 years 6 months ago #250320 by activha
CBsubs and manuel payment gateway was created by activha
Hello

We have a problem with CB subs offline gateway to accept check payments and authorize users to subscribe to a plan.

It seems that this gateway does not use the joomla trigger onAfterUserStore, and then the correct integrations are not started when we manually set a basket to paid in the backend.

We need to double check everything manually if we set payment selection as pending and use the basket to manually record a payment.

If we set payment selection as completed, we lose control of the payment and authorize anybody to subscribe :-)

Any solution ?

Please Log in to join the conversation.

9 years 6 months ago #250356 by krileon
Replied by krileon on topic CBsubs and manuel payment gateway
Paying the basket from backend is how Offline gateway functions. It should be firing the CBSubs triggers fire. It's not going to fire onAfterUserStore unless it needs to, which in most cases is never as CBSubs has its own triggers and rarely alters the users data except in cases of Usergroups, block state, or CBSubs Fields.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 6 months ago #250365 by activha
Replied by activha on topic CBsubs and manuel payment gateway
Well it does not seem to fire integrations to acymailing lists for instance. (users are recorded on lists but not activated)

And not using onAfterUserStore avoids upgrading other extensions which rely on joomla user groups such as Hikamarket Hikashop that we use.

Please Log in to join the conversation.

9 years 6 months ago #250417 by krileon
Replied by krileon on topic CBsubs and manuel payment gateway
onAfterUserStore doesn't exist. I'm not sure where you're getting that trigger from. It's onAfterUserUpdate (frontend) and onAfterUpdateUser (backend). Both of which CBSubs will fire if the user object is modified. CB user store always calls Joomla user store first, which would cause Joomla to fire its events as necessary. The Joomla event is onUserAfterSave, which is handled by Joomla when the CMS user store is triggered. Direct database changes won't have any affect though as they're not storing the user object.

Well it does not seem to fire integrations to acymailing lists for instance. (users are recorded on lists but not activated)

If they're added to the list then the integration is working. Them not activating could be a configuration issue. You need to ensure you've selected newsletters to add instead of remove.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

9 years 6 months ago #250430 by activha
Replied by activha on topic CBsubs and manuel payment gateway
Well everything works well with ogone gateway so this is not a configuration problem but a gateway problem coming from the manuel basket.

I send the information for hikashop developers as they also have the problem with users not being upgraded to the right joomla usergroups when the payment is manually done

Please Log in to join the conversation.

9 years 6 months ago #250486 by krileon
Replied by krileon on topic CBsubs and manuel payment gateway
You could try using CB Auto Actions with the below trigger usages.

Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A

Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To X


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 1.062 seconds

Facebook Twitter LinkedIn