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 settings for Stripe

Payment Processor: mode, currency, Stripe keys and the webhook.

SettingWhat to enter
Environment / ModeSandbox / Test Mode while you test, then Live / Production Mode.
CurrencyThe currency of your payments, for example USD, EUR or GBP.
Payment AmountA fixed amount, for example 25.00. Leave it blank to use the amount from a form field.
Item / DescriptionWhat the customer pays for.
Customer EmailThe customer's email for the receipt.
Enable StripeTick Enable Stripe checkout in the chatbot.
Stripe Checkout MethodStripe Hosted Checkout (Recommended) or Stripe Direct API / Token Charge.
Stripe Test / Live Secret Key and Publishable KeyFrom the Stripe Dashboard. Test keys start with sk_test_, live keys with sk_live_.
Stripe Success Return URL and Stripe Cancel URLWhere 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.

  1. In the Stripe Dashboard go to Developers → Webhooks → Add endpoint. Do this once in test mode and once in live mode.
  2. Paste the Webhook Endpoint URL shown on the Payment Processor page.
  3. 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.canceled and charge.refunded.
  4. 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).

Got more questions?

Contact our ChatBot Support Heroes. They’ll provide you with all the information you need.

Contact us

Customer support is very responsive and professional. The script is awesome and with many features, including A.I. from Dialogflow. High quality.

Newpolaris

If have a 7 Stars won’t hesitate to rate that chatbot as a 7stars+++ Very helpful prompt team support Cannot find enough words express my happiness for purchasing that CHATBot Good Luck for you and your items

Ahsmartsolutions

© 2002- 2026 QuantumCloud

Black Friday! Use coupon code monster for a discount during checkout!

DISCOUNT!

X
Let's chat if you need any help finding the right product or need support.
FAQSend Us Email