darinlarimore/statamic-stripe-form-field
最新稳定版本:1.0.5
Composer 安装命令:
composer require darinlarimore/statamic-stripe-form-field
包简介
README 文档
README
A Statamic addon that adds Stripe payment functionality to your forms.
Features
- Seamless integration with Statamic forms
- Support for one-time payments
- Customizable payment amounts and currencies
- Optional email receipts
- Real-time card validation
- Secure payment processing using Stripe Elements
- Does not store any sensitive payment information, PCI compliant.
Installation
- Require the package using Composer:
composer require darinlarimore/statamic-stripe-form-field
- Add your Stripe API keys to your
.envfile: Visit the Stripe Dashboard to create API keys.
STRIPE_PUBLISHABLE_KEY=your_publishable_key
STRIPE_SECRET_KEY=your_secret_key
Setup Field in a Form's Blueprint
Add the "Stipe Payment" field to your form blueprint and configure the field settings.
Field settings:
Amount(required): The amount to charge the customer.Currency(required): A three-letter ISO currency code supported by Stripe.Payment Description(optional): Enter a description for this payment. It will appear on the transaction in your Stripe account, and on the payment receipt sent to the customer.Receipt Email Field Handle(optional): The field handle of the email field in your form that should be used to send the payment receipt to the customer. If left blank, the customer will not receive a receipt.
Customize the Field Template
You can customize the field template by publishing the field view to your site's views directory:
php artisan vendor:publish --tag=statamic-stripe-form-field-views
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-02-06

