Skip to content

Instantly share code, notes, and snippets.

Winfred Worlanyo Adrah worla

Block or report user

Report or block worla

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@worla
worla / payment_with_cURL.php
Created Apr 13, 2017
Mobile money payment with cURL in PHP
View payment_with_cURL.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";
@worla
worla / payment.php
Last active Apr 13, 2017
Mobile Money Payment Without cURL
View payment.php
<?php
$data = array (
"customer_name" => "worla",
"customer_phone" => "0546652999",
"customer_email" => "creatoshub@gmail.com",
"wallet_provider" => "MTN",
"merchant_name" => "Creators Hub",
"amount" => "1",
);
You can’t perform that action at this time.