Skip to content

Instantly share code, notes, and snippets.

@nukturnal

nukturnal/directpay.php

Last active Dec 13, 2015
Embed
What would you like to do?
<?php
$direct_pay = new MPower_DirectPay();
if ($direct_pay->creditAccount("MPOWER_CUSTOMER_USERNAME_OR_PHONENO",70.65)) {
print $direct_pay->description;
print $direct_pay->response_text;
print $direct_pay->transaction_id;
}else{
print $direct_pay->response_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment