summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-11-04 00:44:52 -0600
committerJonathan Prykop <jonathan@freeside.biz>2015-11-05 20:14:26 -0600
commitf8c4741390077c1448d627949d19c9220cc8e610 (patch)
treea3a7e2d12dd73c2ecf8771f624c495089c7042fd
parent96e1e42b99847bfc2ea9a56281b77fa5a4ac6f55 (diff)
RT#38314: Declined payment shows card as tokenized after first attempt [fixed if paymask is not passed, take 2]
-rw-r--r--FS/FS/cust_main/Billing_Realtime.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 0dbd91792..f33c4549a 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -237,7 +237,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'} ) {