PHP code example of sammy-kariuki / pesaway

1. Go to this page and download the library: Download sammy-kariuki/pesaway library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sammy-kariuki / pesaway example snippets


	/*-----------------------------------------
	|The App consumer key
	|------------------------------------------
	*/
	'consumer_key'   => '',

	/*-----------------------------------------
	|The App consumer Secret
	|------------------------------------------
	*/
	'consumer_secret' => '',

	/*-----------------------------------------
	|The paybill number
	|------------------------------------------
	*/
	'paybill'         => ''

	$paymentResponse=Pesaway::pay_bill(100, '254700xxxxxx', '10');

	$verifyPaymentResponse=Pesaway::verify_payment(100, '254700xxxxxx', 'OBJ69DM0JD');
Config/config.php