By Marc on Friday, 17 May 2019
Posted in General Issues
Replies 7
Likes 0
Views 608
Votes 0
Can members register / login with their social profiles if you are using PayPlans and EasySocial together?
How would it be set up?
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

You can follow our documentation how to setup this.

https://stackideas.com/docs/payplans/administrators/apps/easySocial-Profile-Types
https://stackideas.com/docs/payplans/administrators/registration/easysocial-registration
·
Saturday, 18 May 2019 11:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thats what I thought should work.
I have enabled EasySocial registration in Payplans, along with Social sign-in.
I also setup and activated Twitter sign-in in EasySocial.

So now I have a Twitter sign-in button on the main dashboard page with the words Sign up or login with your social accounts.
I want to sign up using Twitter so I click on the Twitter button.
I then get a Twitter login auth which I complete and then get taken to the signup page.
However, here is where things stop working:

There are now 2 buttons to click.
One says create a new account and the second says Sign up or login with your social accounts.
Its a bit confusing...which one do I select?

If I select the 1st button (create new profile) it just reloads the page
If I select the 2nd button (sign in using Twitter) it goes through the auth processes again and then loads the signup page again.

If I opt to sign up WITHOUT using Social logins, the signup process works perfectly.


So how do I set up the system so that a member can easily subscribe using their social accounts?
(Note that we use normal registration and not quick registration from the dashboard)
·
Sunday, 19 May 2019 20:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a public holiday for us here.

It seems like something is not right when click the sign in via twitter button, it keep redirecting back to the invoice confirmation page, you can check my attached screenshot below some how when it trying to load this following URL on the page, it get redirect to some where.

[gist type="php"]
https://www.site.com/registration/oauthDialog/twitter?return=aW5kZXgucGhwP29wdGlvbj1jb21fZWFzeXNvY2lhbCZ2aWV3PWRhc2hib2FyZCZJdGVtaWQ9MTY4MA==&oauth_token=8sX3-QAAAAAA9LXGAAABatQoU8U&oauth_verifier=ypyUrlBhtefZMlb9on8RTZQLIzQGG3kp
[/gist]

Can you add this following URL into your Twitter app under callback URI section?

[gist type="php"]
https://www.yoursite.com/index.php/registration/oauthDialog/twitter
[/gist]

Because I would like to check and see whether this redirection related your site .htaccess file.
·
Monday, 20 May 2019 15:38
·
0 Likes
·
0 Votes
·
0 Comments
·
The current callback URL is https://www.kiwiklub.com/registration/oauthDialog/twitter
I have replaced it with your suggested one on the twitter app, but the only difference is the addition of index.php in the URL string
·
Monday, 20 May 2019 16:01
·
0 Likes
·
0 Votes
·
0 Comments
·
I am sorry that I didn't explain well in my previous reply, what I mean is add 1 more URL under callback URI section, no need to replace it, so there should be got 2 callback URI :

[gist type="php"]
https://www.yoursite.com/index.php/registration/oauthDialog/twitter
https://www.yoursite.com/registration/oauthDialog/twitter
[/gist]

Keep us update once you update this from your twitter app so I can able to continue investigate on this.
·
Tuesday, 21 May 2019 07:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, thats what I had done already.
I added the second callback to the twitter app
·
Tuesday, 21 May 2019 13:27
·
0 Likes
·
0 Votes
·
0 Comments
·
After checked further regarding this, it seems like that is a bug on our end if the Easysocial login redirection set to 'Easysocial - User Dashboard' page, so it keep redirecting back to the same page when you click sign in via Twitter button.

I've applied following fix on your site :

JoomlaFolder/components/com_easysocial/views/registration/view.html.php
JoomlaFolder/administrator/components/com_payplans/includes/registration/adapters/easysocial.php


And I changed this Twitter registration type to 'Simplified process' (screenshot : http://take.ms/cmlDP) so user do not need to choose which profile type they want to register to, everything is base on your current Payplans app setup.

Can you give it a try and see how it goes?

There are now 2 buttons to click.
One says create a new account and the second says Sign up or login with your social accounts.
Its a bit confusing...which one do I select?

Okay, let me explain further regarding this workflow :

To be frank with you, currently we can't find out a better solution to handle this since Easysocial has many different type of profile registration type (screenshot : https://www.screencast.com/t/ImHpKwyKrJe ).

In older version of Payplans, it only support "Normal Registration(Automatically login)" this registration type, meaning to said if you set to other registration type, it will failed because different registration type has different process.

With this workflow you will not see 2 button (http://take.ms/dLb53) on the invoice confirmation page because user already logged in on the site. So end up site owner only can use this "Normal Registration(Automatically login)" registration type.

Then we found out another workaround workflow which is this one can support all the different registration type :

1. If the user click the social login button from Easysocial, the system will do the authenticate checking and see whether this user register on the site or not, if the user haven't register on the site, it will redirect to the plan listing page.

2. After user choose a plan, it will redirect to invoice confirmation page (http://take.ms/dLb53) which will show 2 button, basically here is allow user to decide whether they want to register via social account or normal registration.

3. if the user choose sign in via Twitter, it will redirect to the authentication page. Once it done, it will redirect back to the invoice confirmation page and proceed that payment.

4. If the user choose normal registration, it will redirect to the full registration form page. Once he enter all the field, it will redirect back to the invoice confirmation page and proceed that payment.
·
Tuesday, 21 May 2019 16:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post