From 54b1dfa1a324ab4e3e3386f8277c1570e0796a87 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 15 Oct 2003 09:41:45 +0000 Subject: [PATCH] - Business::OnlinePayment "recurring_billing" flag is set for subsequent credit card transactions; some processors (AuthorozeNet, others?) use this to waive the CVV2 requirement. --- FS/FS/cust_bill.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 27c4178d9..b9f614651 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -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} ) = -- 2.20.1