Posted on 2007-06-08 11:13:34-07 by d
Paypal submit url hard coded
Hi! The submition url in the module seems to be hard coded to "https://www.paypal.com/cgi-bin/webscr" (line 82). This is inconvenient, as I'd like to be able to set that url to "https://www.sandbox.paypal.com/cgi-bin/webscr" during development. This is probably a bug in the method 'button', as it's possible to alter the url in the constructor. Other methods use the url initialized in the constructor.
my $content = CGI::start_form( -method => 'POST', -action => 'https://www.paypal.com/cgi-bin/webscr',
Should probably be changed to
my $content = CGI::start_form( -method => 'POST', -action => $self->{address},
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.