Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Is there anyone got login with paypal working for xcart 5

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 09-07-2015, 05:11 AM
 
jdougs jdougs is offline
 

Newbie
  
Join Date: May 2003
Location: USA
Posts: 8
 

Default Re: Is there anyone got login with paypal working for xcart 5

That worked.

Thanks!
__________________
---
X-Cart Version 5.2.6
Reply With Quote

The following user thanks jdougs for this useful post:
qualiteam (09-07-2015)
  #12  
Old 12-14-2016, 11:32 PM
 
skepticallemming skepticallemming is offline
    
Join Date: Dec 2015
Posts: 2
 

Default Re: Is there anyone got login with paypal working for xcart 5

I got it working finally by changing line 106 and 107 of /var/www/mwt/xc/classes/XLite/Module/CDev/Paypal/Core/Login.php

from this:

[line 106] 'auth_provider' => 'PayPal',
[line 107] 'state' => \XLite\Core\Request::getInstance()->state,

to this:
[line 106] 'auth_provider' => 'PayPal'/*,
[line 107] 'state' => \XLite\Core\Request::getInstance()->state,*/


For me the resulting return url was greater than the allowed 127 characters.

If you have a short domain name you may be able to just update your return url to:
Code:
https://www.yoururl.com/cart.php?target=paypal_login&action=login&auth_provider=PayPal&state=XLite\Controller\Customer\Login

Hope this helps someone.

Last edited by qualiteam : 12-19-2016 at 04:57 AM.
Reply With Quote

The following user thanks skepticallemming for this useful post:
qualiteam (12-19-2016)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:41 PM.

   

 
X-Cart forums © 2001-2020