From ced19f4fd05dba664b966eff1a2d9569db2c4e8c Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 12 Nov 2005 01:22:47 +0000 Subject: [PATCH] set payip for all payment types --- FS/FS/cust_main.pm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index d131af974..54d56988e 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2275,6 +2275,13 @@ sub realtime_bop { : $invoicing_list[0]; my %content = (); + + my $payip = exists($options{'payip'}) + ? $options{'payip'} + : $self->payip; + $content{customer_ip} = $payip + if length($payip); + if ( $method eq 'CC' ) { $content{card_number} = $payinfo; @@ -2306,12 +2313,6 @@ sub realtime_bop { : $self->payissue; $content{issue_number} = $payissue if $payissue; - my $payip = exists($options{'payip'}) - ? $options{'payip'} - : $self->payip; - $content{customer_ip} = $payip - if length($payip); - $content{recurring_billing} = 'YES' if qsearch('cust_pay', { 'custnum' => $self->custnum, 'payby' => 'CARD', -- 2.11.0