summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2008-07-10 01:50:48 +0000
committerjeff <jeff>2008-07-10 01:50:48 +0000
commit98c39a0ae9692556bf567e5f9cb8cc06f9393510 (patch)
treeb0c25f7193cc25ae8a2e821e11be7d289dc7f156
parent92884f8e5566d63d73eae0b29d1489b0a0cd2eba (diff)
more debugging
-rw-r--r--IPPay.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/IPPay.pm b/IPPay.pm
index 00dffd5..f544718 100644
--- a/IPPay.pm
+++ b/IPPay.pm
@@ -11,7 +11,7 @@ use vars qw($VERSION $DEBUG @ISA $me);
@ISA = qw(Business::OnlinePayment::HTTPS);
$VERSION = '0.02';
-$DEBUG = 0;
+$DEBUG = 1;
$me = 'Business::OnlinePayment::IPPay';
sub set_defaults {
@@ -190,6 +190,11 @@ sub submit {
my $transaction_id = $content{'order_number'};
unless ($transaction_id) {
my ($page, $server_response, %headers) = $self->https_get('dummy' => 1);
+ warn "fetched transaction id: (HTTPS response: $server_response) ".
+ "(HTTPS headers: ".
+ join(", ", map { "$_ => ". $headers{$_} } keys %headers ). ") ".
+ "(Raw HTTPS content: $page)"
+ if $DEBUG;
return unless $server_response=~ /^200/;
$transaction_id = $page;
}