diff options
author | Mitch Jackson <mitch@freeside.biz> | 2019-01-30 01:27:44 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2019-01-30 01:27:44 -0500 |
commit | 6927d8ec706ab562a53690527fce710ad356539f (patch) | |
tree | aba1daf646e1f0eb4890c7040f5882b94314ba1b /FS/FS/ClientAPI | |
parent | 6702f62122aeca25cedd635914a9bd9d1d5a35eb (diff) |
RT# 82010 Fix bug where selfservice payment form may not appear
Diffstat (limited to 'FS/FS/ClientAPI')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index de35c51..c303ae6 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -928,6 +928,12 @@ sub payment_info { $return{credit_card_surcharge_percentage} = $conf->config('credit-card-surcharge-percentage', $cust_main->agentnum); $return{credit_card_surcharge_flatfee} = $conf->config('credit-card-surcharge-flatfee', $cust_main->agentnum); + # A value for 'payby' must be defined in %return + $return{payby} = $return{paybys}->[0] + if !$return{payby} + && ref $return{paybys} + && scalar @{ $return{paybys} }; + return { 'error' => '', %return, }; |