{"id":19244832,"url":"https://github.com/conedevelopment/bazar-stripe","last_synced_at":"2025-07-21T13:34:52.391Z","repository":{"id":210905855,"uuid":"710189227","full_name":"conedevelopment/bazar-stripe","owner":"conedevelopment","description":"The Stripe Payment gateway for Bazar.","archived":false,"fork":false,"pushed_at":"2025-03-27T20:57:04.000Z","size":88,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-05T22:17:21.828Z","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/conedevelopment.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["iamgergo","adamlaki"]}},"created_at":"2023-10-26T07:45:17.000Z","updated_at":"2025-03-27T20:55:48.000Z","dependencies_parsed_at":"2024-02-25T19:38:03.864Z","dependency_job_id":"6e1fd025-0d05-4d0f-bb5d-c2d02dc610b8","html_url":"https://github.com/conedevelopment/bazar-stripe","commit_stats":null,"previous_names":["conedevelopment/bazar-stripe"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/conedevelopment/bazar-stripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conedevelopment%2Fbazar-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conedevelopment%2Fbazar-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conedevelopment%2Fbazar-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conedevelopment%2Fbazar-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conedevelopment","download_url":"https://codeload.github.com/conedevelopment/bazar-stripe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conedevelopment%2Fbazar-stripe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266312188,"owners_count":23909745,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-09T17:25:19.659Z","updated_at":"2025-07-21T13:34:52.354Z","avatar_url":"https://github.com/conedevelopment.png","language":"PHP","funding_links":["https://github.com/sponsors/iamgergo","https://github.com/sponsors/adamlaki"],"categories":[],"sub_categories":[],"readme":"# Bazar Stripe Payment Gateway\n\n## Installation\n\n```sh\ncomposer require conedevelopment/bazar-stripe\n```\n\n## Configuration\n\n### `.env`\n\n```ini\nSTRIPE_TEST_MODE=\nSTRIPE_API_KEY=\nSTRIPE_SECRET=\n```\n\n### Bazar Config\n\n```php\n    // config/bazar.php\n\n    'gateway' =\u003e [\n        'drivers' =\u003e [\n            // ...\n            'stripe' =\u003e [\n                'test_mode' =\u003e env('STRIPE_TEST_MODE', false),\n                'api_key' =\u003e env('STRIPE_API_KEY'),\n                'secret' =\u003e env('STRIPE_SECRET'),\n            ],\n        ],\n    ],\n\n    // ...\n```\n\n## Webhook Events\n\n```sh\nphp artisan make:listener StripeWebhookHandler\n```\n\n```php\nnamespace App\\Listeners;\n\nuse Cone\\Bazar\\Stripe\\WebhookInvoked;\nuse Stripe\\Event;\n\nclass StripeWebhookHandler\n{\n    public function handle(WebhookInvoked $event): void\n    {\n        // https://stripe.com/docs/api/events/types\n        $callback = match ($event-\u003eevent-\u003etype) {\n            'payment_intent.payment_failed' =\u003e function (Event $event): void {\n                // mark transaction as failed\n            },\n            'payment_intent.succeeded' =\u003e function (Event $event): void {\n                // mark transaction as completed and order as paid\n            },\n            default =\u003e function (): void {\n                //\n            },\n        };\n\n        call_user_func_array($callback, [$event-\u003eevent]);\n    }\n}\n```\n\n\u003e [!TIP]\n\u003e If [Event Discovery](https://laravel.com/docs/master/events#event-discovery) is disabled, make sure the listener is bound to the `WebhookInvoked` event in your `EventServiceProvider`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconedevelopment%2Fbazar-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconedevelopment%2Fbazar-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconedevelopment%2Fbazar-stripe/lists"}