{"id":21675671,"url":"https://github.com/thirunjuguna/mpesa","last_synced_at":"2025-10-26T19:08:12.813Z","repository":{"id":57068922,"uuid":"108605454","full_name":"thirunjuguna/mpesa","owner":"thirunjuguna","description":"mpesa b2c  and c2b","archived":false,"fork":false,"pushed_at":"2018-04-27T10:16:01.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-03-26T00:13:31.406Z","etag":null,"topics":["api","b2c","c2b","laravel","mpesa","safaricom"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirunjuguna.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-27T23:43:38.000Z","updated_at":"2024-07-29T12:24:27.000Z","dependencies_parsed_at":"2022-08-24T14:54:13.702Z","dependency_job_id":null,"html_url":"https://github.com/thirunjuguna/mpesa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirunjuguna%2Fmpesa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirunjuguna%2Fmpesa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirunjuguna%2Fmpesa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirunjuguna%2Fmpesa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirunjuguna","download_url":"https://codeload.github.com/thirunjuguna/mpesa/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","b2c","c2b","laravel","mpesa","safaricom"],"created_at":"2024-11-25T14:10:05.540Z","updated_at":"2025-10-26T19:08:12.723Z","avatar_url":"https://github.com/thirunjuguna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"MPESA API\n=================\nThis is a LARAVEL PHP package for the Safaricom's M-Pesa API. The API allows a merchant to initiate C2B online checkout (paybill via web) transactions and perform B2C transaction via the web.\n\nAfter request submission, the merchant receives instant feedback with validity status of their requests. The C2B API handles customer validation and authentication via USSD push. The customer then confirms the transaction. If the validation of the customer fails or the customer declines the transaction, the API makes a callback to merchant. Otherwise the transaction is processed and its status is made through a callback.\n\nInstallation\n============================\ncomposer `require thiru/mpesa`\n\nAdd  \\Thiru\\Mpesa\\MpesaServiceProvider::class on config/app.php\n\n`php artisan vendor:publish --tag=config`\n\n\nThe laravel mpesa Package is open-sourced software licensed under the MIT license.\n\nB2C\n\n`Mpesa::sendMpesaPayment('1000','956555', 'Salary 2017');//$amount,$paybill,$remark`\n\n\nC2B\n\n`Mpesa::requestMpesaPayment($amount, $mobile, $account, $desc)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirunjuguna%2Fmpesa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirunjuguna%2Fmpesa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirunjuguna%2Fmpesa/lists"}