diff options
author | ivan <ivan> | 2009-11-24 06:05:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-11-24 06:05:02 +0000 |
commit | 890d91dbdfc83b20a465f4f56eaf66cc1dc1837e (patch) | |
tree | 9b030333bdba101970bae5dc04fa7acabaa1dad2 | |
parent | 0d68f85684a28f28dd895bd37c6a59d0bd91c496 (diff) |
send card number with void transactions for B:OP:IPPay, RT#5690
-rw-r--r-- | FS/FS/cust_main.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index ae8506bd9..b6873b9cd 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -4663,6 +4663,9 @@ sub realtime_refund_bop { ) { warn " attempting void\n" if $DEBUG > 1; my $void = new Business::OnlinePayment( $processor, @bop_options ); + $content{'card_number'} = $cust_pay->payinfo + if $cust_pay->payby eq 'CARD' + && $void->can('info') && $void->info('CC_void_requires_card'); $void->content( 'action' => 'void', %content ); $void->submit(); if ( $void->is_success ) { @@ -6001,6 +6004,9 @@ sub _new_realtime_refund_bop { ) { warn " attempting void\n" if $DEBUG > 1; my $void = new Business::OnlinePayment( $processor, @bop_options ); + $content{'card_number'} = $cust_pay->payinfo + if $cust_pay->payby eq 'CARD' + && $void->can('info') && $void->info('CC_void_requires_card'); $void->content( 'action' => 'void', %content ); $void->submit(); if ( $void->is_success ) { |