{"id":37005413,"url":"https://github.com/chadrackkanza/flexpay","last_synced_at":"2026-01-14T00:40:16.301Z","repository":{"id":160535562,"uuid":"635410929","full_name":"chadrackkanza/flexpay","owner":"chadrackkanza","description":"Unofficial repo for Flexpay API","archived":false,"fork":false,"pushed_at":"2025-06-14T12:48:39.000Z","size":26,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-27T08:45:33.728Z","etag":null,"topics":["ecommerce","ecommerce-website","flexpaie","flexpay","mpesa","orange","orangemoney"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chadrackkanza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-02T16:27:30.000Z","updated_at":"2025-06-14T12:45:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8f8c98a-1624-4637-ab75-ff26b01132c0","html_url":"https://github.com/chadrackkanza/flexpay","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/chadrackkanza/flexpay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadrackkanza%2Fflexpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadrackkanza%2Fflexpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadrackkanza%2Fflexpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadrackkanza%2Fflexpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chadrackkanza","download_url":"https://codeload.github.com/chadrackkanza/flexpay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chadrackkanza%2Fflexpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ecommerce","ecommerce-website","flexpaie","flexpay","mpesa","orange","orangemoney"],"created_at":"2026-01-14T00:40:15.775Z","updated_at":"2026-01-14T00:40:16.288Z","avatar_url":"https://github.com/chadrackkanza.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Package FlexPay API\n\nFor Laravel 9 and 10\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require chadrackkanza/flexpay\n```\n\n\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"flexpay-config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'token' =\u003e env('FLEXPAY_TOKEN'),\n    'merchant' =\u003e env('FLEXPAY_MERCHANT'),\n    'url_api' =\u003e env('FLEXPAY_URL_API','https://backend.flexpay.cd'),\n    'url_api_card' =\u003e env('FLEXPAY_URL_API_CARD','https://cardpayment.flexpay.cd'),\n    'url_c2b' =\u003e env('FLEXPAY_URL_C2B','/api/rest/v1/paymentService'),\n    'url_b2c' =\u003e  env('FLEXPAY_URL_B2C','/api/rest/v1/merchantPayOutService'),\n    'url_card' =\u003e env('FLEXPAY_URL_CARD','/api/rest/v1/vpos/ask'),\n    'url_check_transaction' =\u003e env('FLEXPAY_URL_CHECK','/api/rest/v1/check'),\n    'url_get_order_number' =\u003e env('FLEXPAY_URL_GET_ORDER_NUMBER','/api/rest/v1/vpos/orderNumber'),\n];\n```\n\n\n## Usage\n\n\nAdd these lines in your .env file\n\n```php\nFLEXPAY_TOKEN=\"YOUR_FLEXPAY_TOKEN\"\nFLEXPAY_MERCHANT=\"YOUR_FLEXPAY_MERCHANT\"\nFLEXPAY_URL_API=\"FLEXPAY_URL_API\"\nFLEXPAY_URL_API_CARD=\"FLEXPAY_URL_API_CARD\"\n```\n\n\nPayment consumer to business\n\n```php\nuse chadrackkanza\\Flexpay\\Facades\\Flexpay;\n$response = Flexpay::c2b(\n        \"TEST0014521\", // reference\n        '243XXXXXXXXX', //phoneNumber\n        '1500', //amount\n        'cdf', //currency\n        'https://mon-site.com', //callbackUrl\n        1 //commission\n   );\ndd($response);\n```\n\nPayment business to consumer\n\n```php\nuse chadrackkanza\\Flexpay\\Facades\\Flexpay;\n$response = Flexpay::b2c(\n        \"TEST0014521\", // reference\n        '243XXXXXXXXX', //phoneNumber\n        '1500', //amount\n        'cdf', //currency\n        'https://mon-site.com', //callbackUrl\n        1 //commission\n   );\ndd($response);\n```\n\nCheck the status of a payment request sent to FlexPay\n\n```php\nuse chadrackkanza\\Flexpay\\Facades\\Flexpay;\n$response = Flexpay::checkTransaction('YOUR_ORDER_NUMBER');\ndd($response);\n```\n\nPayment ( e-money, qr-code and card)\n\n```php\nuse chadrackkanza\\Flexpay\\Facades\\Flexpay;\n$response = Flexpay::payment(\n        \"TEST0014521\", // reference\n        \"Tests de paiement\", // description\n        10, // amount\n        \"USD\", // currency\n        \"https://mon-site.com/callback.com\", // callback_url\n        \"https://mon-site.com/approve.com\", //approve_url\n        \"https://mon-site.com/cancel.com\", // cancel_url\n        \"https://mon-site.com/decline.com\", // decline_url\n        \"https://mon-site.com\" // home_url\n   );\ndd($response);\n```\n\nCheck the status of a payment ( e-money, qr-code and card) request sent to FlexPay\n\n```php\nuse chadrackkanza\\Flexpay\\Facades\\Flexpay;\n$response = Flexpay::getOrderNumber('YOUR_ORDER_NUMBER');\ndd($response);\n```\n\n## Credits\n\n- [Chadrack KANZA](https://github.com/chadrackkanza)\n- [Djoy Romeo](https://github.com/djoyromeo-git/FlexPayService)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadrackkanza%2Fflexpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchadrackkanza%2Fflexpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchadrackkanza%2Fflexpay/lists"}