Last active
October 12, 2015 12:47
-
-
Save nukturnal/4028557 to your computer and use it in GitHub Desktop.
MPower PHP Library Checkout Invoice Creation & Redirection
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 | |
// The code below depicts how to create the checkout invoice on our servers | |
// and redirect to the checkout page. | |
if($invoice->create()) { | |
header("Location: ".$invoice->getInvoiceUrl()); | |
}else{ | |
echo $invoice->response_text; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment