Skip to content

Instantly share code, notes, and snippets.

View worla's full-sized avatar

Winfred Worlanyo Adrah worla

View GitHub Profile
@worla
worla / payment.php
Last active April 13, 2017 19:41
Mobile Money Payment Without cURL
<?php
$data = array (
"customer_name" => "worla",
"customer_phone" => "0546652999",
"customer_email" => "[email protected]",
"wallet_provider" => "MTN",
"merchant_name" => "Creators Hub",
"amount" => "1",
);
@worla
worla / payment_with_cURL.php
Created April 13, 2017 19:45
Mobile money payment with cURL in PHP
<?php
//initialise the maximum execution time to 2 minutes to allow the process to finish
ini_set('max_execution_time', 120); //120 seconds = 2 minutes
$url = "https://app.mpowerpayments.com/api/v1/direct-mobile/charge";