mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 05:58:50 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			459 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			459 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?php
 | 
						|
 | 
						|
class Customer_Charge_Method implements Payment_Method
 | 
						|
{
 | 
						|
	private $_params;
 | 
						|
 | 
						|
	private $_descrip = "Charge a customer";
 | 
						|
 | 
						|
	public function __construct()
 | 
						|
	{
 | 
						|
		$this->_params = array(
 | 
						|
			'amt' 			=> 	'20.00',
 | 
						|
			'currency_code' => 	'usd',
 | 
						|
			'identifier'	=>	'PROFILE-2923849' //Some identifier for the transaction
 | 
						|
		);
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_params()
 | 
						|
	{
 | 
						|
		return $this->_params;
 | 
						|
	}
 | 
						|
 | 
						|
	public function get_description()
 | 
						|
	{
 | 
						|
		return $this->_descrip();
 | 
						|
	}
 | 
						|
}
 |