Skip to main content

Hosted Checkout

The hosted checkout redirects your customer to a MALIPOPAY-hosted payment page. No frontend code required.

How it works

  1. Create a payment link via the API
  2. Redirect your customer to the returned URL
  3. MALIPOPAY handles the UI and payment collection
  4. Customer is redirected back to your callbackUrl
  5. 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"
}'