Take payments in conversational forms with Stripe
On this page
A conversational form can take a payment: a deposit for a booking, a consultation fee or a small order. Payments run through Stripe. WPBot never sees card details.
Step 1: Set up the Payment Processor
Open WPBot Pro → ChatBot → Payment Processor (also linked from the payment settings in the form builder).

Payment Processor: mode, currency, Stripe keys and the webhook.
| Setting | What to enter |
|---|---|
| Environment / Mode | Sandbox / Test Mode while you test, then Live / Production Mode. |
| Currency | The currency of your payments, for example USD, EUR or GBP. |
| Payment Amount | A fixed amount, for example 25.00. Leave it blank to use the amount from a form field. |
| Item / Description | What the customer pays for. |
| Customer Email | The customer's email for the receipt. |
| Enable Stripe | Tick Enable Stripe checkout in the chatbot. |
| Stripe Checkout Method | Stripe Hosted Checkout (Recommended) or Stripe Direct API / Token Charge. |
| Stripe Test / Live Secret Key and Publishable Key | From the Stripe Dashboard. Test keys start with sk_test_, live keys with sk_live_. |
| Stripe Success Return URL and Stripe Cancel URL | Where Stripe sends the customer after paying or cancelling. |
Click Save Changes at the bottom of the page. Secret keys and signing secrets are shown as hidden password fields.
Step 2: Add the Stripe webhook
The webhook tells WPBot when a payment succeeds, fails, expires or is refunded, and WPBot updates the form entry.
- In the Stripe Dashboard go to Developers → Webhooks → Add endpoint. Do this once in test mode and once in live mode.
- Paste the Webhook Endpoint URL shown on the Payment Processor page.
- Select the events listed under Events to send:
checkout.session.completed,checkout.session.async_payment_succeeded,checkout.session.async_payment_failed,checkout.session.expired,payment_intent.succeeded,payment_intent.payment_failed,payment_intent.canceledandcharge.refunded. - Copy each endpoint's signing secret (it starts with
whsec_) into Test Webhook Signing Secret or Live Webhook Signing Secret.
Note
WPBot also checks a payment when the customer comes back to your Stripe Success Return URL, so payments are confirmed even without a webhook. Set up the webhook anyway: customers do not always come back. A payment's status only ever changes when Stripe confirms it, never because of what the browser says.
Step 3: Add the payment to a form
You have two choices:
- Payment field (recommended): add a Payment field anywhere in the form on the Layout tab. Checkout runs when the visitor reaches that step. Set its own Payment Amount (or leave it blank to use the Payment Processor's amount), Item / Description and Customer Email.
- Payment Processor processor: on the Processors tab. The payment runs when the form is submitted.
Payment statuses
Each payment is saved with the form entry. Its status is pending until Stripe confirms it, then completed, failed, expired, canceled or refunded. A failed payment can be retried; a later success moves it to completed.
Test before you go live
Keep Sandbox / Test Mode, fill in the test keys and the test signing secret, and pay with Stripe's test card 4242 4242 4242 4242. Check the entry, then switch to live mode with your live keys and live signing secret.
Availability
In Master and Professional, with Conversational Forms. Not in Starter or WPBot Free. For WooCommerce orders, payments run in your store's own checkout instead (see Chat shopping and Store Settings: search, cart and checkout in the chat).
Was this article helpful?
Sorry about that. Get help another way:

