View Single Post
  #23  
Old 03-18-2014, 10:23 PM
 
Stizerg Stizerg is offline
 

Senior Member
  
Join Date: Apr 2008
Location: Sydney, Australia
Posts: 195
 

Default Re: X-Cart 4.6.3: "Amazon Payments", "PayPal Access", another USPS update.

Quote:
Originally Posted by mixon
Please use the following patch and make the necessary changes to 'modules/PayPal_Login/pp_return.php' file to fix this issue:

Code:
diff --git a/modules/PayPal_Login/pp_return.php b/modules/PayPal_Login/pp_return.php index 6c9bee4..6595ab5 100644 --- a/modules/PayPal_Login/pp_return.php +++ b/modules/PayPal_Login/pp_return.php @@ -106,6 +106,15 @@ $_pplogin_address = array( 'phone' => $user->getPhoneNumber(), ); +x_load('paypal'); + +// detect state from state info returned by PayPal +$_pplogin_address['state'] = func_paypal_detect_state( + $_pplogin_address['country'], + $_pplogin_address['state'], + $_pplogin_address['zipcode'] +); + $_pplogin_check_result = func_pplogin_check_user($_pplogin_profile['payerid'], $_pplogin_profile['openid_identity']);

Thank you, it works.
__________________
X-Cart Gold Plus 4.6.6
A lot of custom mods
Reply With Quote