{"id":37001084,"url":"https://github.com/allanvb/laravel-walletone","last_synced_at":"2026-01-14T00:08:09.251Z","repository":{"id":56945908,"uuid":"292566956","full_name":"allanvb/laravel-walletone","owner":"allanvb","description":"Integration of WalletOne for your laravel app","archived":false,"fork":false,"pushed_at":"2020-09-11T20:54:36.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T11:04:09.365Z","etag":null,"topics":[],"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/allanvb.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":"2020-09-03T12:41:49.000Z","updated_at":"2020-09-11T20:54:13.000Z","dependencies_parsed_at":"2022-08-21T02:40:25.196Z","dependency_job_id":null,"html_url":"https://github.com/allanvb/laravel-walletone","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/allanvb/laravel-walletone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Flaravel-walletone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Flaravel-walletone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Flaravel-walletone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Flaravel-walletone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allanvb","download_url":"https://codeload.github.com/allanvb/laravel-walletone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Flaravel-walletone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406481,"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":[],"created_at":"2026-01-14T00:08:08.662Z","updated_at":"2026-01-14T00:08:09.226Z","avatar_url":"https://github.com/allanvb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n    Laravel package for integrating WalletOne payment gateway into laravel app\n\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/laravel-walletone\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/allanvb/laravel-walletone?color=orange\u0026style=flat-square\" alt=\"Packagist Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/laravel-walletone\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/allanvb/laravel-walletone?color=blue\u0026style=flat-square\" alt=\"GitHub last commit\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/laravel-walletone\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/allanvb/laravel-walletone?color=brightgreen\u0026style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nPackage that integrates [WalletOne](https://www.walletone.com/) API into your Laravel app.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require allanvb/laravel-walletone\n```\n\nIf you're using Laravel 5.5 or above, the package will automatically register provider and facade.\n\n#### Laravel 5.4 and below\n\nAdd `Allanvb\\LaravelWalletOne\\Providers\\WalletoneServiceProvider` to the `providers` array in your `config/app.php`:\n\n```php\n'providers' =\u003e [\n    // Other service providers...\n\n    Allanvb\\LaravelWalletOne\\Providers\\WalletoneServiceProvider::class,\n],\n```\n\nAdd an alias in your `config/app.php`:\n\n```php\n'aliases' =\u003e [\n    ...\n    'WalletOne' =\u003e Allanvb\\LaravelWalletOne\\Facades\\WalletOne::class,\n],\n```\n\nOr you can `use` the facade class when needed:\n\n```php\nuse Allanvb\\LaravelWalletOne\\Facades\\WalletOne;\n```\n\n## Configuration\n\nYou can use `php artisan vendor:publish` to copy the configuration file to your app's config directory:\n\n```sh\n$ php artisan vendor:publish --provider=\"Allanvb\\LaravelWalletOne\\Providers\\WalletoneServiceProvider\" --tag=\"config\"\n```\n\nThen update `config/wallet-one.php` with your credentials. Also you can update your `.env` file with the following:\n\n```dotenv\nWALLETONE_MERCHANT=merchant_id\nWALLETONE_SECRET=secret_key\nWALLETONE_SIGNATURE=signature_method\nWALLETONE_CURRENCY=currency\nWALLETONE_SUCCESS=success_url\nWALLETONE_FAIL=fail_url\n```\n\n## Usage:\n\nTo use the WalletOne Library you can access the facade, or request the instance from the service container:\n\n```php\nWalletOne::make($orderID, $amount, $description, $options);\n```\n\nOr\n\n```php\napp('walletone')-\u003emake($orderID, $amount, $description, $options);\n```\nParameters:\n- `$orderID` - (string) ID of user order on your e-commerce **(required)**.\n- `$amount` - (float) Amount of money the user has to pay  **(required)**.\n- `$description` - (string) Payment description **(required)**.\n- `$options` - (array) Any other options you want to save on WalletOne service, or get back in response.\n\nIn order to create payment form for user, you have to get all post params by using `getParams()` method. \n\n```$php\n$params = WalletOne::getParams();\n```\nThen send this params to your view and create form.\n\nAs form action use `WalletOne::API_URL`.\n\nIn order to get response from WalletOne service, you have to define a `post` route inside your `web.php`.\nThis route should use `\\Allanvb\\LaravelWalletOne\\Http\\Middleware\\WalletonePay::class` middleware.\n\nYou can add this middleware to your `Kernel.php` inside `App\\Http` folder.\n\n```php\n    protected $routeMiddleware = [\n        // Other service providers...\n        \n        'walletone-payment' =\u003e \\Allanvb\\LaravelWalletOne\\Http\\Middleware\\WalletonePay::class\n    ];\n```\n\nThen you can use it as following:\n```php\nRoute::post('/payment-webhook', 'YourController')-\u003emiddleware('walletone-payment');\n```\n**NOTE:** \n- Your controller should return `WalletOne::response()` method !\n- Don't forget to add your route into `$except` param of `VerifyCsrfToken` middleware !\n\nEach request to your route will generate a `SuccessPayment` or `FailedPayment` event,\nso all you have to do is to define a event listener for each of them.\n\n## Security\n\nIf you discover any security related issues, please email [alan.vb@mail.ru](mailto:alan.vb@mail.ru) instead of using the issue tracker.\n\n## Credits\nThis package is actually a continuity of [pdazcom/laravel-walletone](https://github.com/pdazcom/laravel-walletone) whose author is [Konstantin A.](https://github.com/pdazcom)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvb%2Flaravel-walletone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanvb%2Flaravel-walletone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvb%2Flaravel-walletone/lists"}