Fixes for custom payment methods - and their fees and limits object
This commit is contained in:
parent
2079b3e4ba
commit
4727d0cea7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue