mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Merge pull request #5725 from turbo124/v5-develop
Fixes for custom payment methods - and their fees and limits object
This commit is contained in:
commit
3826ac519f
@ -168,7 +168,7 @@ class PaymentMethod
|
||||
if (isset($gateway->fees_and_limits) && is_object($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, GatewayType::CREDIT_CARD)) {
|
||||
|
||||
if ($this->validGatewayForAmount($gateway->fees_and_limits->{GatewayType::CREDIT_CARD}, $this->amount))
|
||||
$this->payment_methods[] = [$gateway->id => GatewayType::CREDIT_CARD];
|
||||
$this->payment_methods[] = [$gateway->id => $type];
|
||||
|
||||
} else {
|
||||
$this->payment_methods[] = [$gateway->id => NULL];
|
||||
|
Loading…
x
Reference in New Issue
Block a user