ItalianBoutiqueShoes Posted September 12, 2014 Share Posted September 12, 2014 I see that payments with PayPal express can have no telephone number. As it is mandatory on my store how can I fix it on Prestashop? Thanks Daniele Link to comment Share on other sites More sharing options...
bellini13 Posted September 12, 2014 Share Posted September 12, 2014 I believe you will need to go into your Paypal account profile and configure it so that all customers are required to provide a phone number when they pay using Paypal. That should force Paypal to collect the phone number from the customer, and then send to your store when the order is created Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted September 14, 2014 Author Share Posted September 14, 2014 Thanks, I have found it :-) Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 12, 2014 Author Share Posted October 12, 2014 Hello, I have set it and I found the phone number on PayPal payment but it is not insert automaticly on the order. How can I fix it and get the phone number on prestashop order from payment? Thanks, Daniele Link to comment Share on other sites More sharing options...
bellini13 Posted October 13, 2014 Share Posted October 13, 2014 Which Paypal module are you using (Europe or USA), and which version of that module? Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 13, 2014 Author Share Posted October 13, 2014 I am using the module I find on Prestashop v 3.7.2 Link to comment Share on other sites More sharing options...
bellini13 Posted October 13, 2014 Share Posted October 13, 2014 Ok, that is Paypal Europe. Please describe how you are testing this, and where you are looking for the phone number. Prestashop stores phone numbers in the customers address. The Paypal Europe module will record the phone number provided by Paypal in the address that has the alias "Paypal_Address". Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 13, 2014 Author Share Posted October 13, 2014 Hello, I am using it and I get PayPal_address with phone number not filled but I found it on PayPal payment confirmation email. Link to comment Share on other sites More sharing options...
bellini13 Posted October 13, 2014 Share Posted October 13, 2014 And is this via express checkout, standard checkout etc...? You'll also need to confirm that Paypal is sending the phone number is the 'PAYMENTREQUEST_0_SHIPTOPHONENUM' parameter Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 13, 2014 Author Share Posted October 13, 2014 Are both checkout available on my site. How can I see which one is used? How can I see if the needed parameter is sended by PayPal? Link to comment Share on other sites More sharing options...
bellini13 Posted October 13, 2014 Share Posted October 13, 2014 Are both checkout available on my site. How can I see which one is used? How do you have the module configured? Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 14, 2014 Author Share Posted October 14, 2014 Express checkout :-) Link to comment Share on other sites More sharing options...
bellini13 Posted October 14, 2014 Share Posted October 14, 2014 and did they checkout by clicking the "pay with paypal" button on the product page, or did they go through your standard checkout process and select paypal as the payment method? Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted October 14, 2014 Author Share Posted October 14, 2014 I don't know. How can I see it? Link to comment Share on other sites More sharing options...
bellini13 Posted October 14, 2014 Share Posted October 14, 2014 you need to test it your self and figure this out Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted August 17, 2015 Author Share Posted August 17, 2015 Dear Bellini, I have PayPal standard module v.3.10.1 with Presta 1.6.1 The problem is on the shipping address created by the PayPal module. It not set the phone number. I checked the PayPal API log and I found the PAYMENTREQUEST_0_SHIPTOPHONENUM parameter with the phone number. I would like to fix: the module should insert it on the address information. Thanks, Daniele Link to comment Share on other sites More sharing options...
universo Posted November 12, 2015 Share Posted November 12, 2015 Hello, I'm also interested ... you have solved the problem ?? Thank you Link to comment Share on other sites More sharing options...
ItalianBoutiqueShoes Posted November 12, 2015 Author Share Posted November 12, 2015 Hello, I think I found the solution but after I changed to PayPal Pro and can't check it anymore. Anyway the problem is only on PayPal Express Checkout because when the module insert the phone number check it and, if is not only number, refuse it. So you need to clean it before the Prestashop check. I made it like this: modules/paypal/express_checkout/payment.php $address->phone = preg_replace('/\D+/', '', $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']); But sometime it happends that this field is empty because PayPal have alredy the phone number on customer details so you need to take it from them if it happend if (!empty($ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM'])) { $address->phone = $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']; }else{ $address->phone = $ppec->result['PHONENUM']; } An other problem can be that the international "+" simble need to be replaced with "00" before the preg_replace As told before I had no time to check all it as, moving on Paypal Pro there is not anymore the Express function so the problem don't happend. I hope it can help someone fixing the problem. 2 1 Link to comment Share on other sites More sharing options...
universo Posted November 12, 2015 Share Posted November 12, 2015 Thank you... Link to comment Share on other sites More sharing options...
Gerryoz1977 Posted February 4, 2016 Share Posted February 4, 2016 Hello, I think I found the solution but after I changed to PayPal Pro and can't check it anymore. Anyway the problem is only on PayPal Express Checkout because when the module insert the phone number check it and, if is not only number, refuse it. So you need to clean it before the Prestashop check. I made it like this: modules/paypal/express_checkout/payment.php $address->phone = preg_replace('/\D+/', '', $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']); But sometime it happends that this field is empty because PayPal have alredy the phone number on customer details so you need to take it from them if it happend if (!empty($ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM'])) { $address->phone = $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']; }else{ $address->phone = $ppec->result['PHONENUM']; } An other problem can be that the international "+" simble need to be replaced with "00" before the preg_replace As told before I had no time to check all it as, moving on Paypal Pro there is not anymore the Express function so the problem don't happend. I hope it can help someone fixing the problem. Hello did this fix the express checkout missing phone number issue?? regards Link to comment Share on other sites More sharing options...
Gerryoz1977 Posted February 4, 2016 Share Posted February 4, 2016 Hello did this fix the express checkout missing phone number issue?? regards Link to comment Share on other sites More sharing options...
jigoliu Posted October 20, 2017 Share Posted October 20, 2017 On 2015/11/12 at 4:25 PM, ItalianBoutiqueShoes said: Hello, I think I found the solution but after I changed to PayPal Pro and can't check it anymore. Anyway the problem is only on PayPal Express Checkout because when the module insert the phone number check it and, if is not only number, refuse it. So you need to clean it before the Prestashop check. I made it like this: modules/paypal/express_checkout/payment.php $address->phone = preg_replace('/\D+/', '', $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']); But sometime it happends that this field is empty because PayPal have alredy the phone number on customer details so you need to take it from them if it happend if (!empty($ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM'])) { $address->phone = $ppec->result['PAYMENTREQUEST_0_SHIPTOPHONENUM']; }else{ $address->phone = $ppec->result['PHONENUM']; } An other problem can be that the international "+" simble need to be replaced with "00" before the preg_replace As told before I had no time to check all it as, moving on Paypal Pro there is not anymore the Express function so the problem don't happend. I hope it can help someone fixing the problem. By adding the below, my problem get fixed. Really appreciated. else{ $address->phone = $ppec->result['PHONENUM']; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now