Jump to content

How to use PayPal email address on the PayPal module instead API?


dooofox

Recommended Posts

Hello all, 

 

Anybody knows how to fill with the PayPal info by using the PayPal email address on the PayPal module, instead PayPal API?

 

Before you understand what I am talking about, there is some basic info about PayPal that you need to know: A PayPal account allows users to have 8 email addresses at the same time, of which one of them is the primary email address. For example:

 

 

Currently, on the PayPal module, it requires me to provide the PayPal API credentials(API username/API password/API signature) to Prestashop, I follow this and it works well, but there is a problem: when users place an order and it redirects to the PayPal website, it shows up the PayPal 's Primary email address,[email protected], however, I don't want it to show up my primary email address, what I need is it shows up my corresponding website's domain email, for example, my ecommerce site is , mysite1.com and I want my customers to see this email address [email protected] at checkout.

 

I am new to use Prestashop while I am using another shopping cart called ISC, which allows me to fill with the PayPal email address I want to show to my customers. Is it possible for Prestashop to have the same feature?

 

Thank you so much.

Link to comment
Share on other sites

I'm not sure this is an issue with the Paypal module.  What you need to do is ask Paypal how they want you to associate one of the 8 emails you have with them, to the transaction that you are sending from your store.

 

Once you have that information, we can look into updating the module, assuming they allow what you want to do

Link to comment
Share on other sites

I'm not sure this is an issue with the Paypal module.  What you need to do is ask Paypal how they want you to associate one of the 8 emails you have with them, to the transaction that you are sending from your store.

 

Once you have that information, we can look into updating the module, assuming they allow what you want to do

Hi,

 

I had contacted PayPal before, of course they support the way I want to go with, but they have no idea about how to deal with the Prestashop module as this is kind of technical. On the other hand, my another shopping cart (called Interspire shopping cart) allows users to fill in the PayPal email account directly, thus, it's not about PayPal. It's about technical thing.

 

Thanks for your reply.

Link to comment
Share on other sites

It has nothing to do with the paypal module.  They need to provide to you the interface details, and once provided the paypal module can be updated, or perhaps a new paypal module will need to be created.

PayPal just replied me that I need to create my own PayPal module instead the default PayPal module. And they sent me the code and a useful link, https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/, as follows:

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_xclick">

<input type="hidden" name="business" value="your email address">

<input type="hidden" name="item_name" value="shoes">

<input type="hidden" name="item_number" value="001">

<input type="hidden" name="amount" value="10">

<input type="hidden" name="currency_code" value="USD">

<input type="hidden" name="shipping" value="5">

<tr><td>

<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">

</td></tr>

</form>

 

 

I wonder if you are able to create such a basic module that enables me to fill in the PayPal email address directly instead PayPal API. By doing this, my customers can see the specific website's domain email address as PayPal account.

 

Thank you.

Link to comment
Share on other sites

well thats just paypal standard.

 

if you use the paypal usa module, it will send the business email address you configure in the module.

 

if you use the paypal "europe" module, then you have to use Website Payments Pro Hosted method which supports this.  Using standard does not support this.

Link to comment
Share on other sites

well thats just paypal standard.

 

if you use the paypal usa module, it will send the business email address you configure in the module.

 

if you use the paypal "europe" module, then you have to use Website Payments Pro Hosted method which supports this.  Using standard does not support this.

 

I just established a new website for testing with setting it as USA, and installed the USA version PayPal module, it's working quite well as expected.

 

But my 2 european sites including Netherlands site and Italy site don't allow me to install the USA version module, do you know any tricks if I want to install USA version module on my european sites?

Link to comment
Share on other sites

yea open the paypalusa.php file in the module folder.  in the install function around line 50 you will see the following code

 

Remove these lines or comment them out and try to install it again

/* This Addon is only intended to work in the USA, Canada and Mexico */
if (Validate::isLoadedObject($this->_shop_country) && !in_array($this->_shop_country->iso_code, array('US', 'MX', 'CA')))
{
    $this->_errors[] = $this->l('Sorry, this module has been designed for stores based in USA, Canada and Mexico only. Please use the classic PayPal Addon instead.');
    return false;
}

This should allow it to install properly.  I'm not sure why they restrict the module to USA, Canada, and Mexico.  Maybe its a contractual thing, or maybe some of the features are only designed to work in these countries.  I'm sure you'll find out as you test it
 

Link to comment
Share on other sites

yea open the paypalusa.php file in the module folder.  in the install function around line 50 you will see the following code

 

Remove these lines or comment them out and try to install it again

/* This Addon is only intended to work in the USA, Canada and Mexico */
if (Validate::isLoadedObject($this->_shop_country) && !in_array($this->_shop_country->iso_code, array('US', 'MX', 'CA')))
{
    $this->_errors[] = $this->l('Sorry, this module has been designed for stores based in USA, Canada and Mexico only. Please use the classic PayPal Addon instead.');
    return false;
}

This should allow it to install properly.  I'm not sure why they restrict the module to USA, Canada, and Mexico.  Maybe its a contractual thing, or maybe some of the features are only designed to work in these countries.  I'm sure you'll find out as you test it

 

Thank you so much. I have come up with a non-technical method:

 

Step 1: go to Preferences > Store Contacts and setup the country as United States.

Step 2: Install the PayPal USA version and then it would be possible to use email address even it still needs the API info.

Step 3: Turn back to step 1 and reset the correct country where the store is truely located.

 

 

Thank you again.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...