Business-OnlinePayment-IPayment
view release on metacpan or search on metacpan
lib/Business/OnlinePayment/IPayment/Response.pm view on Meta::CPAN
}
else {
$self->_add_valid_error("Expected hash $expectedhash isn't " . $self->ret_param_checksum);
return 0;
}
}
=head3 raw_url
Accessor for the raw, undecoded url (used for the checksum).
=cut
has raw_url => (is => 'rw');
=head3 url_is_valid($raw_undecoded_url)
You may ask for the validation of the url, which comes with a checksum
attached. For this you should have already provided the security key
and you should pass the raw undecoded url as argument.
Alternatively, if you set the attribute C<raw_url> in the constructor
or with the accessor, you can call url_is_valid without arguments.
Return false on failure, true on success
Original German doc (left in place because the translation was drunk).
CGI-Name: ret_url_checksum
Webservice-Name: - (nicht benötigt)
t/payment.t view on Meta::CPAN
# diag "Please wait 2 minutes before running me again, or the tests will fail!";
# diag "Test run on " . localtime;
sub test_success {
my $r = shift;
is($r->status_line, '302 Found', "We are redirected");
unlike($r->decoded_content, qr/ERROR/, "No error");
like($r->decoded_content, qr/<a href="http:/, "Redirect");
my $uri = URI->new($r->header('location'));
# my %result = $uri->query_form;
# print Dumper(\%result);
}
sub next_year {
my $year = strftime('%Y', localtime(time())) + 1;
}
( run in 0.281 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )