Download the PHP package andreia/filament-stripe-payment-link without Composer
On this page you can find all versions of the php package andreia/filament-stripe-payment-link. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andreia/filament-stripe-payment-link
More information about andreia/filament-stripe-payment-link
Files in andreia/filament-stripe-payment-link
Package filament-stripe-payment-link
Short Description Filament action to generate a Stripe payment link
License MIT
Homepage https://github.com/andreia/filament-stripe-payment-link
Informations about the package filament-stripe-payment-link
Filament Stripe Payment Link
Provides an action to generate a Stripe payment link.
Installation
You can install the package via composer:
You can publish the config using:
or run the install command:
This is the contents of the published config file:
Requirements
Setup
Stripe
On Stripe dashboard, create a restricted API key:
- Add a descriptive name for your key on "Key name" field
- Add
write
permission toProducts
,Prices
, andPayment Links
- Click on "Create key" button
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
In your Laravel application, add the following on your config/services.php
file:
And on your .env
file, add the secret key generated on Stripe dashboard:
Usage
Add the Stripe payment link action to a Filament form input field:
This is how the action will look like:
When the user clicks on the link icon, a modal will be shown with the product name
, amount
, and currency
fields:
After filling the form data and submitting, the payment link will be added to the form field:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Andréia Bohner
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-stripe-payment-link with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
stripe/stripe-php Version ^16.0