Auto Login after payment CBSUBS

10 years 5 months ago #236858 by inet2800
Auto Login after payment CBSUBS was created by inet2800
Hi,

I'm trying to auto login after the user pay the subscription.
I'm using CBSUBS and also thinking about Auto Actions.

I did what you suggested on this thread here: www.joomlapolis.com/forum/153-professional-member-support/185909-solved-automatic-login-after-registration#185947 but it didn't work.

I'm using Joomla 3.1.5 and Auto Actions 5.1.3 and CBSUBS 3.0

Best Regards

Please Log in to join the conversation.

10 years 5 months ago #236881 by inet2800
Replied by inet2800 on topic Auto Login after payment CBSUBS
I just found out that CB Auto Actions has an auto login event but I tried and it doesn't work.

I tried different triggers but none of them work. Please see the image:

www.dropbox.com/s/ed59hdgivknehi4/Screenshot%202013-11-14%2000.22.10.png

I want the event after the user pays the subscription plan.

Best Regards

Please Log in to join the conversation.

10 years 5 months ago #236899 by krileon
Replied by krileon on topic Auto Login after payment CBSUBS
I believe in that case you need to use the onCPayAfterPaymentStatusUpdateEvent trigger. Note other CBSubs integrations use this trigger so it is possible you could cause a login before CBSubs integrations are done. The below example may work.

Type: Login/Logout
Triggers: onCPayAfterPaymentStatusUpdateEvent
Access: Everybody
Conditional: [var4] Equal To Completed
Username: [username]

The conditional ensures it only attempts to login if the payment is actually completed. var4 is $unifiedStatus of the onCPayAfterPaymentStatusUpdateEvent trigger.


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.

10 years 5 months ago #236903 by inet2800
Replied by inet2800 on topic Auto Login after payment CBSUBS
Kyle,

It doesn't work. I even tried to redirect to google for example and doesn't work.
After the user pays, it is sending me to the default payment completed page:

www.dropbox.com/s/ijan5senkjee4oy/Screenshot%202013-11-14%2008.51.03.png

Also where can I find a list o [var] to be used in the conditionals?

Please Log in to join the conversation.

10 years 5 months ago #236924 by krileon
Replied by krileon on topic Auto Login after payment CBSUBS

It doesn't work. I even tried to redirect to google for example and doesn't work.

There was no guarantee that it would work, sorry. You likely won't be able to as it risks breaking CBSubs workflow.

Also where can I find a list o [var] to be used in the conditionals?

You can find a list of triggers and their variables below.

www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers


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: 0.216 seconds

Facebook Twitter LinkedIn