
About Lesson
Lesson Notes
-
C2B Overview:
C2B payments allow customers to pay businesses directly from their Mpesa wallets using either Paybill or Till numbers. -
Registration of URLs:
- Register callback URLs for validation and confirmation on the Mpesa Daraja Portal.
- Use the
C2B Register URL
API to register endpoints.
-
API Configuration:
- Set up your server to handle validation and confirmation requests.
- Store Paybill or Till numbers in environment/configuration files.
-
Code Implementation:
- Write server-side logic to process validation requests and confirm successful payments.
- Log transaction details for reconciliation.
-
Testing:
- Use the sandbox environment to simulate C2B payments.
- Verify that your server handles validation and confirmation correctly.