VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: HDG on March 18, 2011, 21:48:52 PM

Title: Paypal API: Can't show Paypal errors outside sandbox
Post by: HDG on March 18, 2011, 21:48:52 PM
The "Show PayPal Errors" option for ps_paypal_api doesn't stay on if I turn off Sandbox mode.

I can turn it on with Sandbox mode. But when I turn Sandbox mode off, "Show Paypal Errors" gets turned off and can't be turned on.

I'm only getting Paypal errors in live mode, so I need to see these errors.

How do I turn this option on?
Title: Re: Paypal API: Can't show Paypal errors outside sandbox
Post by: zanardi on March 19, 2011, 17:21:17 PM
There is a little incoherence in PayPal API module. "Enable Sandbox" and "Show Errors" are both referred to as "PAYPAL_API_DEBUG" configuration values.

This should be fixed. Anyway, to quickly solve what your issue, you should hack this file:

/adm.../com.../com_virtuemart/classes/payment/ps_paypal_api.php

Line 569

From:


if(PAYPAL_API_DEBUG == '1')


To:


if( 1 )


Disclaimer: it is just a quick hack and you should remember to change it back once you've done with your debug. And please do not tell anybody that i suggested such an ugly hack :-)