- Business::OnlinePayment "recurring_billing" flag is set for subsequent
authorivan <ivan>
Wed, 15 Oct 2003 09:41:45 +0000 (09:41 +0000)
committerivan <ivan>
Wed, 15 Oct 2003 09:41:45 +0000 (09:41 +0000)
  credit card transactions; some processors (AuthorozeNet, others?) use this
  to waive the CVV2 requirement.

FS/FS/cust_bill.pm

index 27c4178..b9f6146 100644 (file)
@@ -743,6 +743,12 @@ sub realtime_bop {
     $content{card_number} = $cust_main->payinfo;
     $cust_main->paydate =~ /^\d{2}(\d{2})[\/\-](\d+)[\/\-]\d+$/;
     $content{expiration} = "$2/$1";
+    if ( qsearch('cust_pay', { 'custnum' => $cust_main->custnum,
+                               'payby'   => 'CARD',
+                               'payinfo' => $cust_main->payinfo, } )
+    ) { 
+      $content{recurring_billing} = 'YES';
+    }
   } elsif ( $method eq 'ECHECK' ) {
     my($account_number,$routing_code) = $cust_main->payinfo;
     ( $content{account_number}, $content{routing_code} ) =