Skip Menu |

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

Report information
The Basics
Id: 7043
Status: resolved
Priority: 0/
Queue: Business-PayPal

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

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



Subject: Custom address is not working when generating button
Hi mock, Thanks for a handy module. I'm trying to do some testing using the sandbox.paypal.com server but was having problems getting Business::PayPal to generate a button with this custom url in the action attribute. The docs say that the new() function takes an address parameter. However, this parameter is being hard-coded into the button() function. I've attached a short patch which modifies this behavior to match the documentation. Thanks, William
--- PayPal.pm.orig 2002-08-26 02:25:50.000000000 -0400 +++ PayPal.pm 2004-07-21 15:07:45.000000000 -0400 @@ -79,7 +79,7 @@ ); my $key; my $content = CGI::start_form( -method => 'POST', - -action => 'https://www.paypal.com/cgi-bin/webscr', + -action => $self->{'address'}, ); foreach (keys %buttonparam) { next unless defined $buttonparam{$_};
Thanks for the patch, resolved in 0.04.