Last active
October 12, 2015 20:08
-
-
Save nukturnal/4080857 to your computer and use it in GitHub Desktop.
MPower Ruby 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
# Onsite Payment Request Charge requires bother the OPR_Token & Customers Confirmation Token | |
if invoice.charge("OPR_TOKEN","CUSTOMER_CONFIRM_TOKEN") | |
puts invoice.status | |
puts invoice.response_text | |
puts invoice.receipt_url | |
puts invoice.get_customer_info("name") | |
puts invoice.get_customer_info("email") | |
else | |
puts invoice.status | |
puts invoice.response_text | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment