News:

Support the VirtueMart project and become a member

Main Menu

Paypal API: Can't show Paypal errors outside sandbox

Started by HDG, March 18, 2011, 21:48:52 PM

Previous topic - Next topic

HDG

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?

zanardi

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 :-)
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter