diff options
author | ivan <ivan> | 2005-11-12 01:22:47 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-12 01:22:47 +0000 |
commit | ced19f4fd05dba664b966eff1a2d9569db2c4e8c (patch) | |
tree | 134ca530b4af0d3a85d89f0d706489c5dbbedc38 | |
parent | 37287422344131ad0e570fffb76e1952a6a89fd9 (diff) |
set payip for all payment types
-rw-r--r-- | FS/FS/cust_main.pm | 13 |
1 files 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', |