1. Get Your API Key
Contact elementpay.info@gmail.com / sign up on the ElementPay console to get an API key for staging or production.Try the API in Postman
2. Make Your First Onramp Order
- User receives an MPESA STK push.
- On payment, crypto is sent to
user_address
. - Webhook receives order status.
3. Make Your First Offramp Order
- Approve the Token (ERC-20):
- Create the Offramp Order:
- Tokens are withdrawn from the wallet and paid out to the MPESA number.
4. Check Order Status
5. Receive webhooks (recommended)
Configure Webhook URL + Secret on your API key. You’ll receive events likeorder.settled
or order.failed
.
Next: Verify webhook signatures