[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 14a10ac6abb49a3098eaeac65925a7b1546b8a59

Ivan ivan at 420.am
Mon Nov 12 23:54:03 PST 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  14a10ac6abb49a3098eaeac65925a7b1546b8a59 (commit)
      from  52215665b8be0f84b119234d8a46c03a9c881a40 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 14a10ac6abb49a3098eaeac65925a7b1546b8a59
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Nov 12 23:54:01 2012 -0800

    don't send countries other than US/CA/GB/UK to paymentech, RT#20222

diff --git a/FS/FS/pay_batch/paymentech.pm b/FS/FS/pay_batch/paymentech.pm
index 9c1f5d2..e5a6ffa 100644
--- a/FS/FS/pay_batch/paymentech.pm
+++ b/FS/FS/pay_batch/paymentech.pm
@@ -72,7 +72,9 @@ my %paytype = (
   'personal savings'  => 'S',
   'business checking' => 'X',
   'business savings'  => 'X',
-  );
+);
+
+my %paymentech_countries = map { $_ => 1 } qw( US CA GB UK );
 
 %export_info = (
   init  => sub {
@@ -121,7 +123,10 @@ my %paytype = (
         avsCity         => substr($_->city, 0, 20),
         avsState        => $_->state,
         avsName        => substr($_->first . ' ' . $_->last, 0, 30),
-        avsCountryCode => $_->country,
+        avsCountryCode => ( $paymentech_countries{ $_->country }
+                              ? $_->country
+                              : ''
+                          ),
         orderID        => $_->paybatchnum,
         amount         => $_->amount * 100,
         );

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/pay_batch/paymentech.pm |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list