Better test
This commit is contained in:
parent
b682fe728c
commit
0bf62c6426
@ -889,7 +889,7 @@ abstract class CommonInvoice extends CommonObject
|
||||
{
|
||||
global $conf, $mysoc, $user, $langs;
|
||||
|
||||
if ($type != 'bank-transfer' && empty($conf->global->STRIPE_SEPA_DIRECT_DEBIT)) {
|
||||
if ($type != 'bank-transfer' && $type != 'credit-transfer' && empty($conf->global->STRIPE_SEPA_DIRECT_DEBIT)) {
|
||||
return 0;
|
||||
}
|
||||
if ($type != 'direct-debit' && empty($conf->global->STRIPE_SEPA_CREDIT_TRANSFER)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user