Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Last active December 23, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nukturnal/6561349 to your computer and use it in GitHub Desktop.
Save nukturnal/6561349 to your computer and use it in GitHub Desktop.
MPower Onsite Payment Request (OPR)
curl -H "Content-Type: application/json" \
-H "MP-Master-Key: dd6f2c90-f075-012f-5b69-00155d866600" \
-H "MP-Private-Key: test_private_amOI11Gb0SIo6NSLZr1xkfOYSuE" \
-H "MP-Token: d25e1f4ddc053779d526" \
-X POST -d '{"invoice_data" : {"invoice":{"items": {},"taxes": {},"total_amount": 325,"description": "a tin of milk"},"store":{"name": "Kwame Ayewa Enterprises","tagline": "provision store","postal_address": "P.O.Box 1233 Accra North","phone": "233249441409","logo_url": "","website_url": ""},"custom_data": {},"actions":{"cancel_url": "","return_url": ""}},"opr_data" :{"account_alias" : "mpower2"}}' \
"https://app.mpowerpayments.com/sandbox-api/v1/opr/create"
#Sandbox Endpoint
https://app.mpowerpayments.com/sandbox-api/v1/opr/create
#Live Endpoint
https://app.mpowerpayments.com/api/v1/opr/create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment