26. Stripe Setup | Form Forge - Build Forms with AI in Seconds
Download Log in

26. Stripe Setup

Developer Guide

Stripe integration uses the PaymentIntent API for secure, SCA-compliant payments. PRO feature.

Configuration

Stripe settings are stored in wp_options under key formforge_stripe_settings:

php
$settings = [
    'mode'                    => 'test',  // 'test' or 'live'
    'test_publishable_key'    => 'pk_test_...',
    'test_secret_key'         => 'sk_test_...',
    'live_publishable_key'    => 'pk_live_...',
    'live_secret_key'         => 'sk_live_...',
    'webhook_secret'          => 'whsec_...',
];

Payment Field Configuration

json
{
  "id": "field_payment",
  "type": "payment",
  "label": "Payment",
  "currency": "usd",
  "amount": 2500,
  "payment_description": "Consultation fee"
}

The amount is in the smallest currency unit (cents for USD). So 2500 = $25.00.

Forge AI Assistant Online

Hi! I'm the Form Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs