{"id":21829876,"url":"https://github.com/andreia/filament-stripe-payment-link","last_synced_at":"2026-03-05T14:03:52.845Z","repository":{"id":242436888,"uuid":"809206149","full_name":"andreia/filament-stripe-payment-link","owner":"andreia","description":"Filament plugin that provides an action to generate a Stripe payment link.","archived":false,"fork":false,"pushed_at":"2025-08-20T20:50:41.000Z","size":453,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T22:24:47.238Z","etag":null,"topics":["filament","payment-link","php","plugin","stripe"],"latest_commit_sha":null,"homepage":"","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/andreia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"andreia"}},"created_at":"2024-06-02T02:38:13.000Z","updated_at":"2025-08-20T20:50:39.000Z","dependencies_parsed_at":"2025-02-03T04:34:39.569Z","dependency_job_id":null,"html_url":"https://github.com/andreia/filament-stripe-payment-link","commit_stats":null,"previous_names":["andreia/filament-stripe-payment-link"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/andreia/filament-stripe-payment-link","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreia%2Ffilament-stripe-payment-link","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreia%2Ffilament-stripe-payment-link/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreia%2Ffilament-stripe-payment-link/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreia%2Ffilament-stripe-payment-link/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreia","download_url":"https://codeload.github.com/andreia/filament-stripe-payment-link/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreia%2Ffilament-stripe-payment-link/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"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":["filament","payment-link","php","plugin","stripe"],"created_at":"2024-11-27T18:32:52.278Z","updated_at":"2026-03-05T14:03:52.764Z","avatar_url":"https://github.com/andreia.png","language":"PHP","funding_links":["https://github.com/sponsors/andreia"],"categories":[],"sub_categories":[],"readme":"# Filament Stripe Payment Link\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/andreia/filament-stripe-payment-link.svg?style=flat-square)](https://packagist.org/packages/andreia/filament-stripe-payment-link)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/andreia/filament-stripe-payment-link/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/andreia/filament-stripe-payment-link/actions?query=workflow%3Arun-tests+branch%3Amain)\n![GitHub Code Style Action Status](https://github.com/andreia/filament-stripe-payment-link/actions/workflows/fix-php-code-style-issues.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/andreia/filament-stripe-payment-link.svg?style=flat-square)](https://packagist.org/packages/andreia/filament-stripe-payment-link)\n\nProvides an action to generate a Stripe payment link.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require andreia/filament-stripe-payment-link\n```\n\nYou can publish the config using:\n\n```bash\nphp artisan vendor:publish --tag=\"filament-stripe-payment-link-config\"\n```\n\nor run the install command:\n\n```bash\nphp artisan andreia/filament-stripe-payment-link:install\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n\n    'action' =\u003e [\n        'icon' =\u003e 'heroicon-m-link',\n        'requires-confirmation' =\u003e false,\n    ],\n\n    'payment-link-key-location' =\u003e 'services.stripe.payment-link-key',\n\n];\n```\n\n## Requirements\n\n-  [Stripe PHP API](https://github.com/stripe/stripe-php)\n\n## Setup\n\n### Stripe\n\nOn [Stripe dashboard](https://dashboard.stripe.com/apikeys/create), create a restricted API key:\n\n1. Add a descriptive name for your key on \"Key name\" field\n2. Add `write` permission to `Products`, `Prices`, and `Payment Links`\n3. Click on \"Create key\" button\n\n![Stripe Dashboard restricted API key](https://raw.github.com/andreia/filament-stripe-payment-link/main/docs/stripe_dashboard.png)\n\nOn the redirected page, in \"Restricted keys\" section, locate the name of your key. Click to reveal the secret key and copy it. It will be used to connect to Stripe.\n\n### Laravel Project\n\nIn your Laravel application, add the following on your `config/services.php` file:\n\n```php\n'stripe' =\u003e [\n    'payment-link-key' =\u003e env('STRIPE_PAYMENT_LINK_KEY')\n],\n```\n\nAnd on your `.env` file, add the secret key generated on Stripe dashboard:\n\n```\nSTRIPE_PAYMENT_LINK_KEY=\"your key here\"\n```\n\n## Usage\n\nAdd the Stripe payment link action to a [Filament form input field](https://filamentphp.com/docs/3.x/forms/actions#adding-an-affix-action-to-a-field):\n\n```php\nuse Andreia\\FilamentStripePaymentLink\\GenerateStripeLinkAction;\n\npublic static function form(Form $form): Form\n{\n    return $form\n        -\u003eschema([\n            TextInput::make('stripe_payment_link')\n                -\u003erequired()\n                -\u003esuffixAction(GenerateStripeLinkAction::make('stripe_payment_link')),\n        ]);\n}\n```\n\nThis is how the action will look like:\n\n![Form field with Stripe Payment link action](https://raw.github.com/andreia/filament-stripe-payment-link/main/docs/form-field-with-action.png)\n\nWhen the user clicks on the link icon, a modal will be shown with the `product name`, `amount`, and `currency` fields:\n\n![Modal with required fields to generate Stripe payment link](https://raw.github.com/andreia/filament-stripe-payment-link/main/docs/modal.png)\n\nAfter filling the form data and submitting, the payment link will be added to the form field:\n\n![Stripe payment link](https://raw.github.com/andreia/filament-stripe-payment-link/main/docs/payment-link.png)\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n-   [Andréia Bohner](https://github.com/andreia)\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreia%2Ffilament-stripe-payment-link","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreia%2Ffilament-stripe-payment-link","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreia%2Ffilament-stripe-payment-link/lists"}