Skip Menu |

This queue is for tickets about the Business-PayPal-IPN CPAN distribution.

Report information
The Basics
Id: 53261
Status: new
Priority: 0/
Queue: Business-PayPal-IPN

People
Owner: Nobody in particular
Requestors: ted.hopp [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.94
Fixed in: (no value)



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.
Subject: IPN.pm

Message body is not shown because it is too large.