RT#38314: Declined payment shows card as tokenized after first attempt [fixed if...
authorJonathan Prykop <jonathan@freeside.biz>
Wed, 4 Nov 2015 06:44:52 +0000 (00:44 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Wed, 4 Nov 2015 06:44:52 +0000 (00:44 -0600)
FS/FS/cust_main/Billing_Realtime.pm

index 9112607..c5039ff 100644 (file)
@@ -266,7 +266,10 @@ sub _bop_defaults {
     }
   }
 
-  $options->{payinfo} = $self->payinfo unless exists( $options->{payinfo} );
+  unless ( exists( $options->{'payinfo'} ) ) {
+    $options->{'payinfo'} = $self->payinfo;
+    $options->{'paymask'} = $self->paymask;
+  }
 
   # Default invoice number if the customer has exactly one open invoice.
   if( ! $options->{'invnum'} ) {