Stripe
Stripe is a payments platform. Advanced Form Integration sends form submissions to Stripe, so every form entry on your WordPress site can create or update records automatically without manual data entry.
What you’ll need
- An active Stripe account.
- An API token from Stripe (see below).
- The Advanced Form Integration plugin installed and activated.
Get your Stripe API token
Stripe authenticates with a bearer token.
- Sign in to your Stripe account.
- Open Settings → API or the developer/integrations section.
- Generate or copy your API Token (sometimes called a Personal Access Token).
- Paste it in AFI → Settings → Stripe.
Connect Stripe to AFI
- In WordPress, go to AFI → Settings and open the Stripe tab.
- Click Add New Account and paste the API key or token.
- Give the account a name you will recognise.
- Click Save.
Create the integration
- Go to AFI → Add New.
- Give the integration a name, for example
Form to Stripe. - Under Trigger, pick the form plugin and the specific form you want to listen on.
- Under Action → Platform, select Stripe.
- In Task, choose Create Customer.
- Pick the saved account in the Stripe Account dropdown.
- Map your form fields onto the Stripe fields listed below.
- Optional: open Conditional Logic to limit which submissions are sent.
- Click Save Integration.
Tasks supported
Create Customer
Creates a new customer record. The record appears in your dashboard immediately.
| Field | Field key | Required | Notes |
|---|---|---|---|
| Email (required | email |
Yes | |
| Full Name | name |
Yes | |
| Phone | phone |
No | |
| Description | description |
No | |
| Address Line 1 | address_line1 |
No | |
| Address Line 2 | address_line2 |
No | |
| City | address_city |
No | |
| State / Province | address_state |
No | |
| Postal Code | address_postal_code |
No | |
| Country (ISO-2 | address_country |
No | |
| Metadata (optional JSON | metadata_json |
No |
Conditional logic example
Only send data to Stripe when the form’s email field is not empty, so test submissions or incomplete entries do not create records. Add a condition: Email is not empty.
Troubleshooting
Nothing arrives in Stripe
Open AFI → Log and find the most recent entry for this integration. AFI stores the request it sent and the raw response it got back. If there is no log entry at all, the trigger never fired: re-check the form selection and submit a real test entry from the front end.
API key rejected
Copy the key directly from Stripe with no leading or trailing spaces. If the key was revoked or regenerated, update it in AFI → Settings → Stripe.