PHPackages                             andreia/filament-stripe-payment-link - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. andreia/filament-stripe-payment-link

ActiveLibrary[Payment Processing](/categories/payments)

andreia/filament-stripe-payment-link
====================================

Filament action to generate a Stripe payment link

v1.1.0(1y ago)141.9k↓42.5%2[4 PRs](https://github.com/andreia/filament-stripe-payment-link/pulls)MITPHPPHP ^8.1CI passing

Since Jun 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/andreia/filament-stripe-payment-link)[ Packagist](https://packagist.org/packages/andreia/filament-stripe-payment-link)[ Docs](https://github.com/andreia/filament-stripe-payment-link)[ GitHub Sponsors](https://github.com/andreia)[ RSS](/packages/andreia-filament-stripe-payment-link/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (15)Versions (7)Used By (0)

Filament Stripe Payment Link
============================

[](#filament-stripe-payment-link)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5fcb7e238f3ca55f12ecf974d3462e993327003a21d1b3dc2cfad8170af023b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreia/filament-stripe-payment-link)[![GitHub Tests Action Status](https://camo.githubusercontent.com/012ae5cf9d09f818cd9ddf54d239ff34cba10a94179257bea7024cd936ce0815/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/andreia/filament-stripe-payment-link/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://github.com/andreia/filament-stripe-payment-link/actions/workflows/fix-php-code-style-issues.yml/badge.svg)](https://github.com/andreia/filament-stripe-payment-link/actions/workflows/fix-php-code-style-issues.yml/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/c5aead8487f95c7e7788e31bbc29aeefb3c353a142d84ce71ef9bf011f984c23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreia/filament-stripe-payment-link)

Provides an action to generate a Stripe payment link.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require andreia/filament-stripe-payment-link
```

You can publish the config using:

```
php artisan vendor:publish --tag="filament-stripe-payment-link-config"
```

or run the install command:

```
php artisan andreia/filament-stripe-payment-link:install
```

This is the contents of the published config file:

```
return [

    'action' => [
        'icon' => 'heroicon-m-link',
        'requires-confirmation' => false,
    ],

    'payment-link-key-location' => 'services.stripe.payment-link-key',

];
```

Requirements
------------

[](#requirements)

- [Stripe PHP API](https://github.com/stripe/stripe-php)

Setup
-----

[](#setup)

### Stripe

[](#stripe)

On [Stripe dashboard](https://dashboard.stripe.com/apikeys/create), create a restricted API key:

1. Add a descriptive name for your key on "Key name" field
2. Add `write` permission to `Products`, `Prices`, and `Payment Links`
3. Click on "Create key" button

[![Stripe Dashboard restricted API key](https://camo.githubusercontent.com/05508173a69ebd3df329baef6050c50b20032ce77dd970a49a8f01a5e41b6f4e/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f7374726970655f64617368626f6172642e706e67)](https://camo.githubusercontent.com/05508173a69ebd3df329baef6050c50b20032ce77dd970a49a8f01a5e41b6f4e/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f7374726970655f64617368626f6172642e706e67)

On 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.

### Laravel Project

[](#laravel-project)

In your Laravel application, add the following on your `config/services.php` file:

```
'stripe' => [
    'payment-link-key' => env('STRIPE_PAYMENT_LINK_KEY')
],
```

And on your `.env` file, add the secret key generated on Stripe dashboard:

```
STRIPE_PAYMENT_LINK_KEY="your key here"

```

Usage
-----

[](#usage)

Add 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):

```
use Andreia\FilamentStripePaymentLink\GenerateStripeLinkAction;

public static function form(Form $form): Form
{
    return $form
        ->schema([
            TextInput::make('stripe_payment_link')
                ->required()
                ->suffixAction(GenerateStripeLinkAction::make('stripe_payment_link')),
        ]);
}
```

This is how the action will look like:

[![Form field with Stripe Payment link action](https://camo.githubusercontent.com/43a58d64b9762c0630b89d488a94574bbe33b6f53a5417be080613e9ba95a0e9/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f666f726d2d6669656c642d776974682d616374696f6e2e706e67)](https://camo.githubusercontent.com/43a58d64b9762c0630b89d488a94574bbe33b6f53a5417be080613e9ba95a0e9/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f666f726d2d6669656c642d776974682d616374696f6e2e706e67)

When the user clicks on the link icon, a modal will be shown with the `product name`, `amount`, and `currency` fields:

[![Modal with required fields to generate Stripe payment link](https://camo.githubusercontent.com/6d9200be91eed5db6b3b874b1db415da990327cb618a2425eb94de96a40390e0/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f6d6f64616c2e706e67)](https://camo.githubusercontent.com/6d9200be91eed5db6b3b874b1db415da990327cb618a2425eb94de96a40390e0/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f6d6f64616c2e706e67)

After filling the form data and submitting, the payment link will be added to the form field:

[![Stripe payment link](https://camo.githubusercontent.com/46e0bad3c9385af5684ae5d536a3691dd4ac7dc969c93baf9bb0235fd49baa33/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f7061796d656e742d6c696e6b2e706e67)](https://camo.githubusercontent.com/46e0bad3c9385af5684ae5d536a3691dd4ac7dc969c93baf9bb0235fd49baa33/68747470733a2f2f7261772e6769746875622e636f6d2f616e64726569612f66696c616d656e742d7374726970652d7061796d656e742d6c696e6b2f6d61696e2f646f63732f7061796d656e742d6c696e6b2e706e67)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Andréia Bohner](https://github.com/andreia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance68

Regular maintenance activity

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~222 days

Total

2

Last Release

492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d0402fb770bca016dd6ee6a925501e0224783f1e5907788aee0ba7bc31c01ee?d=identicon)[andreiabohner](/maintainers/andreiabohner)

---

Top Contributors

[![andreia](https://avatars.githubusercontent.com/u/38911?v=4)](https://github.com/andreia "andreia (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

filamentpayment-linkphppluginstripelaravelstripefilamentpayment linkfilament-stripe-payment-link

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/andreia-filament-stripe-payment-link/health.svg)

```
[![Health](https://phpackages.com/badges/andreia-filament-stripe-payment-link/health.svg)](https://phpackages.com/packages/andreia-filament-stripe-payment-link)
```

###  Alternatives

[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
