Subject: | Add tax, tax exempt, freight, duty, and ponum fields |
This patch:
*) adds the TAXAMT, FREIGHTAMT, DUTYAMT, TAXEXEMPT, and PONUM fields. I
did not find a document on what fields BOP wants to use for these, so I
used the fields found in the following BOP::AuthorizeNet pending patch,
which seemed to make sense to me. (tax, freight, duty, tax_exempt, and
po_number.)
http://rt.cpan.org/Public/Bug/Display.html?id=42046
*) allows the user to explicitly set CUSTREF. I did not know a good BOP
field to use for this, so it needs to be used directly if the user needs it.
*) adds clarification in documentation that login/password need to be
used in content call.
-- Josh
Subject: | PayflowPro_tax_freight_field_1_01_diff.patch |
--- /usr/local/lib/perl5/site_perl/5.10.0/Business/OnlinePayment/PayflowPro.pm 2009-09-22 15:11:53.000000000 -0600
+++ PayflowPro.pm 2009-11-13 09:31:39.000000000 -0700
@@ -8,7 +8,7 @@
use base qw(Business::OnlinePayment::HTTPS);
-$VERSION = '1.01';
+$VERSION = '1.02';
$VERSION = eval $VERSION;
$DEBUG = 0;
@@ -216,6 +216,13 @@
SHIPTOSTATE => 'ship_state',
SHIPTOZIP => 'ship_zip',
SHIPTOCOUNTRY => 'ship_country',
+
+ TAXAMT => 'tax',
+ FREIGHTAMT => 'freight',
+ DUTYAMT => 'duty',
+ TAXEXEMPT => 'tax_exempt',
+ PONUM => 'po_number',
+
);
# Reload %content as _revmap_fields makes our copy old/invalid!
@@ -244,6 +251,7 @@
SHIPTOFIRSTNAME SHIPTOLASTNAME
SHIPTOSTREET SHIPTOCITY SHIPTOSTATE SHIPTOZIP SHIPTOCOUNTRY
CUSTCODE
+ TAXAMT FREIGHTAMT DUTYAMT TAXEXEMPT PONUM CUSTREF
)
);
@@ -397,13 +405,15 @@
my $tx = new Business::OnlinePayment(
'PayflowPro',
- 'vendor' => 'your_vendor',
+ 'vendor' => 'your_vendor_aka_merchant_login',
'partner' => 'your_partner',
'client_certification_id' => 'GuidUpTo32Chars',
);
# See the module documentation for details of content()
$tx->content(
+ login => 'your_username',
+ password => 'your_password',
type => 'VISA',
action => 'Normal Authorization',
description => 'Business::OnlinePayment::PayflowPro test',
@@ -647,6 +657,13 @@
SHIPTOZIP => 'ship_zip',
SHIPTOCOUNTRY => 'ship_country',
+ TAXAMT => 'tax',
+ FREIGHTAMT => 'freight',
+ DUTYAMT => 'duty',
+ TAXEXEMPT => 'tax_exempt',
+ PONUM => 'po_number',
+
+
The required Payflow Pro parameters for credit card transactions are:
TRXTYPE TENDER PARTNER VENDOR USER PWD ORIGID