Jump to content

PayPal API Intergration


Recommended Posts

Hi there,

I'm new to PrestaShop, and I am building an eCommerce website to sell cheap compatible printer ink.

Slight problem...

I have added my PayPal API on the backend of the admin website and I get the following error:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.ne-ink.co.uk Port 443"

I have checked within the FTP under Modules/PayPal and PayPal API and the permissions are set as 0777 for each file and directory under each.

The shop was installed from WHM/cPANEL via that Softalicious auto-install program.

I do have an SSL certificate and a dedicated IP address.

I have looked on here and other forums for a solution but had no luck.

The URL is www.ne-ink.co.uk
user: [email protected]
pass: test123

Any comments/help/suggestions are more than welcome.

Thanks,

Jamie

Link to comment
Share on other sites

***UPDATE***

I have deleted the shop files via FTP and uploaded the ones available from this website.

I have PayPal and PayPal API setup.

Firstly, the PayPal API works until the last stage of payment then I get the following message:

Please refer to logs:
Making new connection to 'api-3t.paypal.com/nvp'
Connect with CURL method sucessfull
Sending this params:
METHOD=SetExpressCheckout&VERSION=53.0&PWD;=*********&USER=sales_api1.ne-ink.co.uk&SIGNATURE;=*********&Amt=0.01&PAYMENTACTION=Sale&ReturnUrl=https://www.ne-ink.co.uk/modules/paypalapi/payment/submit.php?fromPayPal=1&CANCELURL=https://www.ne-ink.co.uk/order.php&CURRENCYCODE=GBP&NOSHIPPING=1&SOLUTIONTYPE=Mark&LANDINGPAGE=Login&LOCALECODE=en
Send with CURL method sucessfull
PayPal response:
TIMESTAMP -> 2010-11-08T14:18:45Z
CORRELATIONID -> 1c4fb7c439f6c
ACK -> Failure
VERSION -> 53.0
BUILD -> 1603004
L_ERRORCODE0 -> 10002
L_SHORTMESSAGE0 -> Security error
L_LONGMESSAGE0 -> Security header is not valid
L_SEVERITYCODE0 -> Error
PayPal returned error

On the admin side of the website here's what it's set on:
Sandbox Mode: No
PayPal Option+
Express Checkout: Yes
And I have my API settings inserted onto the righthand side from PayPal.





The normal option works until it goes to the auto-redirect and im left with a blank screen with www.mywebsite.co.uk/modules/paypal/redirect.php - underneath it says:

"Please wait, redirecting to Paypal...Thanks.


Cancel"


Does anyone know this problem?

For your information I'm using PayPal v1.7.1 and PayPalAPI v1.0

Thanks in advance,

Jamie

Link to comment
Share on other sites

  • 3 months later...

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...