mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 17:18:29 -04:00 
			
		
		
		
	Merge pull request #5724 from turbo124/v5-develop
Fixes for custom payment methods - and their fees and limits object
This commit is contained in:
		
						commit
						ac12188500
					
				| @ -165,10 +165,10 @@ class PaymentMethod | |||||||
| 
 | 
 | ||||||
|             foreach ($gateway->driver($this->client)->gatewayTypes() as $type) { |             foreach ($gateway->driver($this->client)->gatewayTypes() as $type) { | ||||||
| 
 | 
 | ||||||
|                 if (isset($gateway->fees_and_limits) && is_object($gateway->fees_and_limits) && property_exists($gateway->fees_and_limits, $type)) { |                 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))  |                     if ($this->validGatewayForAmount($gateway->fees_and_limits->{GatewayType::CREDIT_CARD}, $this->amount))  | ||||||
|                         $this->payment_methods[] = [$gateway->id => $type]; |                         $this->payment_methods[] = [$gateway->id => GatewayType::CREDIT_CARD]; | ||||||
|                      |                      | ||||||
|                 } else { |                 } else { | ||||||
|                     $this->payment_methods[] = [$gateway->id => NULL]; |                     $this->payment_methods[] = [$gateway->id => NULL]; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user