mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Add convertToGoCardlessAmount
				
					
				
			This commit is contained in:
		
							parent
							
								
									f4ddc5a974
								
							
						
					
					
						commit
						c913c61493
					
				@ -102,4 +102,9 @@ class GoCardlessPaymentDriver extends BaseDriver
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        // ..
 | 
					        // ..
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function convertToGoCardlessAmount($amount, $precision)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return \round(($amount * pow(10, $precision)), 0);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user