{"id":21081993,"url":"https://github.com/zepson-tech/dpo-php","last_synced_at":"2025-05-16T09:31:19.844Z","repository":{"id":57090077,"uuid":"419538357","full_name":"Zepson-Tech/dpo-php","owner":"Zepson-Tech","description":"A PHP package to simplify using DPO Payment API in your application.  https://dpogroup.com","archived":false,"fork":false,"pushed_at":"2021-10-23T09:00:52.000Z","size":13,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-20T10:09:56.497Z","etag":null,"topics":["hacktoberfest","payment","php"],"latest_commit_sha":null,"homepage":"https://zepsonhost.com/","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/Zepson-Tech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-21T01:08:55.000Z","updated_at":"2024-04-11T11:07:57.000Z","dependencies_parsed_at":"2022-08-20T16:00:57.533Z","dependency_job_id":null,"html_url":"https://github.com/Zepson-Tech/dpo-php","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/Zepson-Tech%2Fdpo-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepson-Tech%2Fdpo-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepson-Tech%2Fdpo-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zepson-Tech%2Fdpo-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zepson-Tech","download_url":"https://codeload.github.com/Zepson-Tech/dpo-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225419610,"owners_count":17471434,"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":["hacktoberfest","payment","php"],"created_at":"2024-11-19T20:11:52.478Z","updated_at":"2024-11-19T20:11:53.266Z","avatar_url":"https://github.com/Zepson-Tech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DPO (Direct Pay Online) PHP Package\n\n## _The best DPO php package, simple Ever_\n\n[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)\n\nThis is the package that will help you add DPO Payment API to your PHP Application, We are open to contribution and support to make it better.\n\n## Features\n\n-   Create Payment Token (Initiate order at DPO servers)\n-   Verify Payment Token (Check Transaction status)\n-   Make Direct payment(Redirects order direct to DPO payment page)\n-   Fetch Payment Token\n-   Database migrations to save transaction details\n-   Much easy to use\n-   Constantly updated\n\n## How It works\n\n1. Create Payment token\n2. Verify token\n3. Redirect to DPO payment page\n4. Fetch response\n5. Done\n\n#### The package does all this for you behind the scenes 😂\n\n### Basic Usage Example.\n\n```php\n\u003c?php\n\nuse Zepson\\Dpo\\Dpo;\n\n$dpo = new Dpo();\n$order = [\n    'paymentAmount' =\u003e \"10000\",\n    'paymentCurrency' =\u003e \"TZS\",\n    'customerFirstName' =\u003e \"Novath\",\n    'customerLastName' =\u003e \"Thomas\",\n    'customerAddress' =\u003e \"Tanzania\",\n    'customerCity' =\u003e \"Dodoma\",\n    'customerPhone' =\u003e \"0752771650\",\n    'customerEmail' =\u003e \"novath@zepson.co.tz\",\n    'companyRef' =\u003e \"34TESTREFF\"\n];\n// Now make  payment\n$dpo-\u003edirectPayment($data);\n// Its done! Simple right! 😂\n\n```\n\n## Installation\n\nInstall the package Via Composer\n\n```sh\ncomposer require zepson/dpo-php\n```\n\n## Requirements\n\n- PHP: \"7.4|^8.0\"\n\n## USAGE\n\n-   create array of your order which match parrameters in the following exaple\n\n```php\n$order = [\n    'paymentAmount' =\u003e \"10000\",\n    'paymentCurrency' =\u003e \"TZS\",\n    'customerFirstName' =\u003e \"Novath\",\n    'customerLastName' =\u003e \"Thomas\",\n    'customerAddress' =\u003e \"Tanzania\",\n    'customerCity' =\u003e \"Dodoma\",\n    'customerPhone' =\u003e \"0752771650\",\n    'customerEmail' =\u003e \"novath@zepson.co.tz\",\n    'companyRef' =\u003e \"34TESTREFF\"\n];\n\n```\n\n-   Now you can choose to make direct payment or createToken First and then make payment\n-   Starting with Direct Payment\n\n```php\n$dpo = new Dpo;\nreturn $dpo-\u003edirectPayment($data); // this will redirect user to DPO Payment page\n```\n\n-   If you preffer to save details then this is the ideal step to follow [Generate Token, Make payment]\n-   Get Token\n\n```php\n$token = $dpo-\u003ecreateToken($data); //return array of response with transaction code\n//you can save or do what ever you want with the response\n```\n\n-   Get payment Url\n\n```php\n$dpo-\u003egetPaymentUrl($token);\n```\n\n-   Redirect User to payment page\n\n```php\nreturn Redirect::to($payment_url);\n```\n\nAs [Novath Thomas] always says\n\n\u003e There is a huge difference between sysem security and\n\u003e complications, Complication hurts, API should'nt be complicated\n\u003e Thats one of the primary AIM of the introduction of APIs\n\n#### We would like more contributions to make the package more secure and readable.\n\n## License\n\nThis project is licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepson-tech%2Fdpo-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzepson-tech%2Fdpo-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzepson-tech%2Fdpo-php/lists"}