Subject: | PayPal sandbox (IPN v 2.6) not supported |
IPN.pm does not work with the PayPal sandbox (part of IPN v. 2.6, perhaps earlier). The problem is that if the IPN query has parameter 'test_ipn' set, a different validation gateway needs to be used.
Without revising IPN.pm, there is a work-around. Before instantiating an IPN object, check for the query parameter 'test_ipn' and, if set, execute
$Business::PayPal::IPN::GTW = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
I am attaching a mucked-up version of IPN.pm that includes this behavior. (I presumptuously upped the module version to 1.95.) I think I kept it 100% backward compatible, but I don't have a test suite.
Without revising IPN.pm, there is a work-around. Before instantiating an IPN object, check for the query parameter 'test_ipn' and, if set, execute
$Business::PayPal::IPN::GTW = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
I am attaching a mucked-up version of IPN.pm that includes this behavior. (I presumptuously upped the module version to 1.95.) I think I kept it 100% backward compatible, but I don't have a test suite.
Subject: | IPN.pm |
Message body is not shown because it is too large.