Payment Test

Trigger a C2B prompt

Enter the customer number and amount, then initialize the M-Pesa C2B Single-Stage request from a Next.js route handler.

References are generated as unique values and kept within the documented transaction-reference length limit to reduce duplicate transaction errors.

What to expect

The immediate response only confirms that M-Pesa accepted the initialization request. Final success comes after the customer enters the PIN and your callback or status query confirms the outcome.
Submit a request to see the sync API response here.