定制 darinlarimore/statamic-stripe-form-field 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

darinlarimore/statamic-stripe-form-field

最新稳定版本:1.1.0

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

统计信息

  • 总下载量: 95
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固