Subject: | Business-PayPal Bug |
Date: | Wed, 18 Jun 2014 01:16:50 -0700 |
To: | bug-Business-PayPal [...] rt.cpan.org |
From: | Viktor Nacht <viktor.nacht [...] gmail.com> |
Please note that in the following code, you’re overwriting the @certs array with certcontent data, making it impossible to add valid certificates.
if ($self->{addcert}) {
push @certs, $self->{cert};
}
if ($self->{addcertcontent}) {
push @certs, $self->{certcontent};
}
if ($self->{cert}) {
@certs = $self->{cert};
}
if ($self->{certcontent}) {
@certs = $self->{certcontent};
}
Also, please consider making the PayPal Sandbox an option by including the cert and making it an argument. I found the above bug when I was trying to test my code on their development server.