darinlarimore/statamic-stripe-form-field 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

Front End Example

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

  1. Require the package using Composer:
composer require darinlarimore/statamic-stripe-form-field
  1. Add your Stripe API keys to your .env file: 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

Stripe Payment

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-02-06