Open jkister opened 9 years ago
If you're looking for debug data you can set the following environment variable, it is not recommended for production environments as it logs sensitive data.
REMOTE_CLIENT_DEBUG variable. This can be set to either 0, 1, 2, for varying levels of verbosity.
it's possible/probable that the exception itself could be improved, patches welcome on that
I am actually thinking that the script is not supposed to die with that kind of error when we try to authorize an expired credit card.. is that not true ?
oh, i see now we can just eval { the submit() } and keep on going.
hmm... I actually don't remember, I'd have to ask the freeside people what the behavior of B:OP is supposed to be in that context... though admittedly I'd rather offload the module as I no longer have credentials to test it.
I suggest using Try::Tiny instead of eval, there are numerous eval gotchas, and the module already requires it thus you'll already have it
I noticed when doing a simple transaction (like in Synopsis of Business::Onlinepayment) with an expired credit card (01/14), I get a stack error:
I edited Business::OnlinePayment/CyberSource/Client.pm:
and this shows: