money-check-dollar-penCreate payment

Initiates a MonCash payment session for a customer. Returns a redirect_url that you must forward the customer to so they can complete payment on MonCash.

// POST
/api/merchant/payments/moncash/

headers ={
    Authorization: Bearer <token>
    }
// BODY /JSON
{
  "amount": 2500,     //required (htg)
  "reference_id": "ORDER-001", //optional - your internal order/reference ID. Returned as-is in callbacks.
  "customer_name": "Jean Pierre", //optional
  "customer_email": "[email protected]", //optional
  "description": "Commande #001"   //optional
}

response

// response example
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "reference_id": "ORDER-001",
    "amount": "2500.00",
    "status": "pending",
    "redirect_url": "https://moncashbutton.digicelhaiti.com/Moncash-middleware/..."
  }
}

Redirect the customer to redirect_url. They will complete the payment on the MonCash platform. Once done, they will be sent to your Return URL and Bouspam will call your Webhook URL.

Last updated