summaryrefslogtreecommitdiff
path: root/IPPay.pm
diff options
context:
space:
mode:
authorjeff <jeff>2010-07-17 22:34:58 +0000
committerjeff <jeff>2010-07-17 22:34:58 +0000
commit7516d92e433d4e74589e1e4337dc885aaf523f01 (patch)
tree2d4e4aa27f41d22aa2dc8cbd760112d5fe7e5644 /IPPay.pm
parenta7ffdf742b491ad38126db36efe8f478ac7c1c9c (diff)
never send an empty country
Diffstat (limited to 'IPPay.pm')
-rw-r--r--IPPay.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IPPay.pm b/IPPay.pm
index c58e14a..2786c95 100644
--- a/IPPay.pm
+++ b/IPPay.pm
@@ -309,6 +309,7 @@ sub submit {
Phone => 'phone',
);
}
+ delete $shippingaddr{Country} unless $shippingaddr{Country};
tie my %shippinginfo, 'Tie::IxHash',
$self->revmap_fields(
@@ -362,6 +363,7 @@ sub submit {
IndustryInfo => \%industryinfo,
ShippingInfo => \%shippinginfo,
);
+ delete $req{BillingCountry} unless $req{BillingCountry};
my $post_data;
my $writer = new XML::Writer( OUTPUT => \$post_data,