{"id":41602793,"url":"https://github.com/mayoz/laravel-omnipay","last_synced_at":"2026-01-24T10:52:17.434Z","repository":{"id":62525817,"uuid":"45766608","full_name":"mayoz/laravel-omnipay","owner":"mayoz","description":"An Omnipay bridge for Laravel 5.","archived":false,"fork":false,"pushed_at":"2019-01-29T23:37:04.000Z","size":6,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T15:47:28.360Z","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/mayoz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-11-08T04:17:14.000Z","updated_at":"2023-03-08T04:04:24.000Z","dependencies_parsed_at":"2022-11-02T14:15:41.854Z","dependency_job_id":null,"html_url":"https://github.com/mayoz/laravel-omnipay","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mayoz/laravel-omnipay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayoz%2Flaravel-omnipay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayoz%2Flaravel-omnipay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayoz%2Flaravel-omnipay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayoz%2Flaravel-omnipay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mayoz","download_url":"https://codeload.github.com/mayoz/laravel-omnipay/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mayoz%2Flaravel-omnipay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28725378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: 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-24T10:52:16.980Z","updated_at":"2026-01-24T10:52:17.428Z","avatar_url":"https://github.com/mayoz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel: Omnipay\n\n**An Omnipay bridge for Laravel 5**\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/mayoz/laravel-omnipay.svg?style=flat-square)](https://packagist.org/packages/mayoz/laravel-omnipay)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require mayoz/laravel-omnipay\n```\n\n### Configuration\n\nAfter installing the Omnipay library, register the `Mayoz\\Omnipay\\OmnipayServiceProvider` in your `config/app.php` configuration file:\n\n```php\n    'providers' =\u003e [\n        // Other service providers...\n\n        Mayoz\\Omnipay\\OmnipayServiceProvider::class,\n    ],\n```\n\nAlso, add the `Omnipay` facade to the `aliases` array in your `app` configuration file:\n\n```php\n    'Omnipay' =\u003e Mayoz\\Omnipay\\Facades\\Omnipay::class,\n```\n\nFinally, publish the configuration files via `php artisan vendor:publish`.\n\nOpen the `config/omnipay.php` configuration file and set the default provider connection with `default` key. Define the connections with initialize configurations you want in `providers` key.\n\n```php\n    'providers' =\u003e [\n        'Stripe' =\u003e [\n            'ApiKey'   =\u003e '',\n            'testMode' =\u003e false,\n        ],\n\n        'Iyzico' =\u003e [\n            'ApiKey'    =\u003e '',\n            'ApiSecret' =\u003e '',\n            'testMode'  =\u003e false,\n        ]\n    ],\n```\n\n## Omnipay Driver\n\nThis package supports when yours driver has been using the Omnipay infrastructure.\nNow, add the omnipay provider you want to use. For example:\n\n``` bash\n$ composer require omnipay/stripe\n# or\n$ composer require mayoz/omnipay-iyzico\n```\n\n## Usage\n\nNext, you are ready to use. Please see the following examples.\n\n```php\n\u003c?php\n\n    namespace App\\Http\\Controllers;\n\n    use Omnipay;\n    use Illuminate\\Routing\\Controller;\n\n    class HomeController extends Controller\n    {\n        /**\n         * Purchase.\n         *\n         * @return Response\n         */\n        public function purchase()\n        {\n            // Send purchase request\n            $response = Omnipay::purchase([\n                'amount' =\u003e '10.00',\n                'currency' =\u003e 'USD',\n                'card' =\u003e [\n                    'number' =\u003e '4242424242424242',\n                    'expiryMonth' =\u003e '6',\n                    'expiryYear' =\u003e '2016',\n                    'cvv' =\u003e '123'\n                ]\n            ])-\u003esend();\n\n            // Process response\n            if ($response-\u003eisSuccessful()) {\n\n                // Payment was successful\n                print_r($response);\n\n            } elseif ($response-\u003eisRedirect()) {\n\n                // Redirect to offsite payment gateway\n                $response-\u003eredirect();\n\n            } else {\n\n                // Payment failed\n                echo $response-\u003egetMessage();\n            }\n        }\n    }\n```\n\n## Support\n\nIf you are having general issues with Omnipay, we suggest posting on\n[Stack Overflow](http://stackoverflow.com/). Be sure to add the\n[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.\n\nIf you want to keep up to date with release anouncements, discuss ideas for the project,\nor ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which\nyou can subscribe to.\n\nIf you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/mayoz/laravel-omnipay/issues),\nor better yet, fork the library and submit a pull request.\n\n## Security\n\nIf you discover any security related issues, please email srcnckr@gmail.com instead of using the issue tracker.\n\n## License\n\nTHis package is licensed under [The MIT License (MIT)](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayoz%2Flaravel-omnipay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayoz%2Flaravel-omnipay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayoz%2Flaravel-omnipay/lists"}