Stripe Form Field Icon

Stripe Form Field

Stripe Form Field Main Screenshot

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