Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Last active December 23, 2015 00:59
Show Gist options
  • Save nukturnal/6556996 to your computer and use it in GitHub Desktop.
Save nukturnal/6556996 to your computer and use it in GitHub Desktop.
MPower Checkout Redirect HTTP API
#Sandbox Endpoint
https://app.mpowerpayments.com/sandbox-api/v1/checkout-invoice/create
#Live Endpoint
https://app.mpowerpayments.com/api/v1/checkout-invoice/create
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": { "items": {}, "taxes": {}, "total_amount": 200.00, "description": "Description of the invoice here" }, "store": { "name": "MPower Test Store", "tagline": "Tagline of the online store", "postal_address": "Box 10770 Accra - Ghana", "phone": "233244124660", "logo_url": "", "website_url": "" }, "custom_data": {}, "actions": { "cancel_url": "", "return_url": "" } }' \
"https://app.mpowerpayments.com/sandbox-api/v1/checkout-invoice/create"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment