Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal not registering Customer Name


Mort-lemur

Recommended Posts

I have noticed recently that an increasing number of customers are not having their name recorded when either logging in with paypal or checking out using paypal express.

The name is captured in the Shipping Address and Billing Address  but not under the Customer Address.

Has something changed recently ?

Im using 2.3.4 with the latest version of the paypal app and paypal express.

attached is a screenshot showing the blanks from today and part of yesterday.

Any ideas?

Many thanks

screen.jpg

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

It seems that given_name and family_name is no longer working

My fix

In includes/modules/content/login/cm_paypal_login.php

After

          $force_login = false;

Add

          // fixme
          if (!isset($response['given_name']) && !isset($response['family_name'])) {
            //code to extract firstname and lastname from name
            $name = explode(' ', $response['name']);

            $response['given_name'] = tep_db_prepare_input($name[0]);
            $response['family_name'] = tep_db_prepare_input((isset($name[count($name)-1]) ? $name[count($name)-1] : ''));
          }

Before

              tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);

Add

              // fixme
              if ($this->hasAttribute('date_of_birth') && isset($response['birthday']) && !empty($response['birthday'])) {
                $sql_data_array['customers_dob'] = tep_db_prepare_input($response['birthday']);
              }

 

Link to comment
Share on other sites

@ruden Thank you - I have just made the changes - will see if it solves the problem over the next few days.

 

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

  • 2 weeks later...

@ruden Thank you, a couple of weeks on and your solution solved the problem

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

@wHiTeHaT No I dont seem to have problems like you mention, but my customers seem to all have quite short names...   

 

 

 

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

41 minutes ago, diabloiptv said:

Hello

for me his walk but he still misses sex and date of birth.

Hello

for the date of birth is to regulate but lacks the sex of the person

Link to comment
Share on other sites

  • 1 month later...
On 5/10/2018 at 5:27 AM, ruden said:

It seems that given_name and family_name is no longer working

My fix

In includes/modules/content/login/cm_paypal_login.php

After


          $force_login = false;

Add


          // fixme
          if (!isset($response['given_name']) && !isset($response['family_name'])) {
            //code to extract firstname and lastname from name
            $name = explode(' ', $response['name']);

            $response['given_name'] = tep_db_prepare_input($name[0]);
            $response['family_name'] = tep_db_prepare_input((isset($name[count($name)-1]) ? $name[count($name)-1] : ''));
          }

Before


              tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);

Add


              // fixme
              if ($this->hasAttribute('date_of_birth') && isset($response['birthday']) && !empty($response['birthday'])) {
                $sql_data_array['customers_dob'] = tep_db_prepare_input($response['birthday']);
              }

 

Worked for me only difference was I had

 tep_db_perform('customers', $sql_data_array);

instead of

tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);

 

thank you

 

 

David

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...