Created
November 8, 2012 06:40
-
-
Save nukturnal/4037256 to your computer and use it in GitHub Desktop.
MPower Java 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
// The code below depicts how to create the checkout invoice on our servers | |
// and redirect to the checkout page. | |
if (invoice.create()) { | |
System.out.println(invoice.getStatus()); | |
System.out.println(invoice.getResponseText()); | |
System.out.println(invoice.getInvoiceUrl()); | |
} else { | |
System.out.println(invoice.getResponseText()); | |
System.out.println(invoice.getStatus()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment