<?php
	include "Lipisha.php";
	
	$lipisha = new Lipisha();

	// API Environment
	$lipisha->api_environment = "test"; // Can either be "test" for sandbox/testing/developer or "live" for production environment 
	
	// API Keys (Note that each environment ("test" or "live") has a different set of api keys and signature (Can be found on the Developer (http://developer.lipisha.com) or Live (http://lipisha.com) dashboards))
	$lipisha->api_key = "7c487439a94da7437bcc0122735efbc8"; // Login to Lipisha Go to Setting -> API generate if not available and copy you api key
	$lipisha->api_signature = "1h2v9z0VNF0Ku/cc6rjUJe41OgcsrFXBrELw/yeebT56+LNB+yGgYPKnk+zytyI1zrLvCpPf4SOi/M8wcqnF+a8m0T7Sfs4U5RodXykp5CNozKZrMPK3iephwKg6XOShMR/h24O4U3fx+JoIUxugdmVs1cW+dFVXfvc4oKRqF2g="; // copy your api signature
	
	// API Calls
	//$lipisha->confirm_transaction("DS54EX316");
	//$lipisha->acknowledge_transaction("DT08RF699");
	//$lipisha->create_payment_account(1, "1 - John Doe","accountant");
	//$lipisha->create_withdrawal_account(8, "My Consultancy Limited","123456789","Barclays Bank","Lavington","P .O Box 10000-00101 Nairobi","BARCKENXBIS","my_consultancy");
	$lipisha->get_balance();
	//$lipisha->get_float("00293");
	//$lipisha->get_transactions("","", "","","","","","","","","Completed","","","","","");
	//$lipisha->get_customers("","254723123456");
	//$lipisha->send_airtime("00526","254723123456","10","SAF"); // Safaricom
	//$lipisha->send_airtime("00527","254736123456","10","AIR"); // Airtel
	//$lipisha->authorize_card_transaction("00100","John Doe","john.doe@example.com","0723123456","P.O.Box 132456","","KE","Nairobi","00202","5245524252455245","092018","852", "1500","KES");
	//$lipisha->complete_card_transaction("{89E5795B-A2A1-4EB5-9D70-B052C632D5A4}","50496");
	//$lipisha->reverse_card_authorization("{F48B8E7C-7401-44FA-B345-51C7C7D5580E}","50524");
	//$lipisha->send_money("00525","0723123456","100");
	//$lipisha->create_user("John Doe", "Driver","0723123456","john.doe@example.com","john_doe","myS3cretPassw0rd");
	//echo $lipisha->status;
	//echo $lipisha->status_code;
	//echo $lipisha->status_description;
	//echo $lipisha->content;
	echo $lipisha->json;

?>