News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

PayPal Express Chechout

Started by Acmiron, March 27, 2019, 09:40:48 AM

Previous topic - Next topic

Acmiron

Joomla 3.9.4, PhP 7.2, VM 3.4.3.

I have quite some problems with PayPal Express Checkout.
In Sandbox Mode it works fine.
When I change to Production Mode, I receive a VirtueMart error message:
"505 Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request"
No errors displayed in the server error log.

Thanks in advance for support

Jörgen

When Do You get the error ? How, what Do You do ?
Check memory for server and assign at least 128 MB

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

Probably a good idea to turn on PayPal debug (it is at the bottom of the PP configuration tab) and also VM debug (under Advanced Settings on VM Configuration/Shop tab)
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Acmiron

Quote from: Jörgen on March 27, 2019, 10:12:22 AM
When Do You get the error ? How, what Do You do ?
Check memory for server and assign at least 128 MB

Jörgen @ Kreativ Fotografi
I get the error after:
I select a product and "Add to Cart". The cart with the details is displayed and then clicked on PayPal Checkout.
Login at PayPal and continued.
From PayPal it returns displaying the cart with details and after a long time  the error message is displayed.


I did the following:
changed in VM Payment Methods from sandbox to production.
Filled in production API Username, API Password and API Signature (these are different as in sandbox) and saved.
Left the rest in the configuration unchanged.
Memory is 256 MB

Quote from: jenkinhill on March 27, 2019, 10:59:22 AM
Probably a good idea to turn on PayPal debug (it is at the bottom of the PP configuration tab) and also VM debug (under Advanced Settings on VM Configuration/Shop tab)
In PayPal debug and VM debug no errors are shown.

jenkinhill

I'm surprised that nothing shows in debug. So next questions are: is your site running under https? If so do you use .htaccess to force SSL ?  Is "Enable SSL for sensitive areas " selected in VM Configuration/Shop?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Acmiron

Quote from: jenkinhill on March 27, 2019, 14:55:38 PM
I'm surprised that nothing shows in debug. So next questions are: is your site running under https? If so do you use .htaccess to force SSL ?  Is "Enable SSL for sensitive areas " selected in VM Configuration/Shop?

In debug I see no errors, e.g..
VM Debug for VM Configuration:

Message
1 vmdebug Show All Errors, PHP-Version 7.2.15
2 vmdebug 3 Languages, default shoplanguage (VmConfig::$jDefLang): de_de de-DE Fallback language (VmConfig::$defaultLang): de_de Selected VM language (VmConfig::$vmlang): en_gb en-GB SEF: en $lfbs =
3 vmdebug vmTime: time to load config: 0.00228595733642578
4 vmdebug vmTime: time to import plugins vmuserfield: 4.38690185546875E-5
5 vmdebug Start used Ram 4M
6 vmdebug My Memory Limit in Bytes 268435456
7 vmdebug vmTime: "VirtueMartControllerConfig" Finished task config: 0.438562154769897
8 vmdebug End used Ram 4M
9 vmdebug Peak memory peak 6M

In Joomla the entire site is set to Force https.
.htaccess is not used to force SSL.
"Enable SSL for sensitive areas" is set in VM.
CAPTCHA - reCAPTCHA is set in Joomla and VM.
Added in robots.txt: Allow: /components/com_virtuemart/assets/
Allow: /modules/mod_virtuemart_cart/assets/

The site contains 3 languages of which German is the default.
In Sandbox for all three languages it works fine.


jenkinhill

Quote
"Enable SSL for sensitive areas" is set in VM.

This should be not set if SSL is already set for the entire site. I prefer to use .htaccess to forces SSL and also to ensure that either www. or no www. is forced for site URLs.

A 505 error may be associated with http issues, but I have never encountered one before.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum