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

FS/FS/cust_main.pm

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