Hosted Checkout
The hosted checkout redirects your customer to a MALIPOPAY-hosted payment page. No frontend code required.
How it works
- Create a payment link via the API
- Redirect your customer to the returned URL
- MALIPOPAY handles the UI and payment collection
- Customer is redirected back to your
callbackUrl - You receive a webhook notification
Create a checkout session
curl -X POST https://core-prod.malipopay.co.tz/api/v1/payment/link \
-H "apiToken: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": 50000,
"currency": "TZS",
"description": "Order #001",
"callbackUrl": "https://yoursite.com/payment/complete",
"reference": "ORDER-001"
}'