Jump to content

[Solved] Paypal APi issue


fineform

Recommended Posts

I am just starting out, now trying to get Paypal going in my Prestashop.

(WMy Prestashop is working fine for cheque and COD payment modules)

I installed Paypal 3.6.3 (free) and it all runs fine to the end of the order, but when I click on the Paypal pay option it searches for Paypal link (I can see the URL in the bottom of browser page - Chrome), then a few seconds later it says javascript:void(0) and nothing happens.

I am in Australia, working in AUD, have copied API settings from my Paypal Premium account, have checked my server's Prestashop files to make sure the folders are 755 status, I tried express checkout too...

Example product is 

http://www.learneasy...troller=product

Practice customer:

John Doe 

[email protected]

 

Error as follows... 

 

Please try to contact the merchant:

  1. <b>PayPal response:</b>
  2. TIMESTAMP -> 2014-01-08T10:23:05Z
  3. L_ERRORCODE0 -> 10002
  4. L_SHORTMESSAGE0 -> Authentication/Authorization Failed
  5. L_LONGMESSAGE0 -> You do not have permissions to make this API call
  6. L_SEVERITYCODE0 -> Error

 

Not much help on the Paypal site;

Error 10002 includes: You do not have permission to make this API call

 

OKaaay...

So I do not have permission to make this API call...

Is this something on the Paypal end or the Prestashop end?

Edited by fineform (see edit history)
Link to comment
Share on other sites

Type it by hand, sometimes extra junk will get picked up from copy and pasting. The error message means that your credentials are not correct. If typing it by hand does not work, regenerate them and try typing those in by hand. 

Link to comment
Share on other sites

I copied it very carefully, checked thru Notepad, double-checked, done it about 10 times. Had Paypal make a new set of API codes.

Still sitting there...

BUT...

On Chrome's console, I get the following; 

Refused to display 'https://www.paypal.com/websc&cmd=_express-checkout&token=EC-93K1992719274645X' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
 
This link works BTW - straight into my Paypal with my purchase... Why doesn't it show?
I guess this means my API codes ARE working (?)
Regards
Tim
Link to comment
Share on other sites

Well, it would only be masked if you did so - on purpose.

For example, I had my Prestashop website (www.eyeopenerpictures.com) INSIDE the same host I was using for another another website (www.learneasy.info) - so I masked the URL. Unfortunately, I had to remove the masking to get Paypal to work. 

Now I have an ugly URL like this...

http://www.learneasy.info/eyeopener/ps/index.php

instead of...

www.eyeopenerpictures.com/ps/index.php 

 

But Paypal works now.

 

If you are not sure,  check the browser console - if you can run Paypal from the quoted URL then it means you are connecting to Paypal, but the page is not showing (like my masking problem)

On Chrome's console, I get the following; 

Refused to display 'https://www.paypal.c...K1992719274645X' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Edited by fineform (see edit history)
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...