Last active
October 12, 2015 20:17
-
-
Save nukturnal/4081406 to your computer and use it in GitHub Desktop.
MPower PHP OPR charge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Onsite Payment Request Charge requires bother the OPR_Token & Customers Confirmation Token | |
if($invoice->charge("OPR_TOKEN","CUSTOMER_CONFIRM_TOKEN")) { | |
echo $invoice->getStatus(); | |
echo $invoice->response_text; | |
echo $invoice->getReceiptUrl(); | |
echo $invoice->getCustomerInfo("name"); | |
echo $invoice->getCustomerInfo("email"); | |
} else { | |
echo $invoice->getStatus(); | |
echo $invoice->response_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment