How to obtain keys and enable webhooks for Stripe

If you use the Stripe payment method in the booking widget, you’ll need to connect it by obtaining your account keys.

Add Stripe Secret and Public keys

Here is how to find them:

  1. Go to your Stripe dashboard.
  2. Obtain your Stripe Secret and Public keys by navigating to the Developers section of the Stripe dashboard and clicking on API Keys.
    1. Use test mode with test card numbers to test your Stripe integration before going live with payments.

      Use test API Keys and enable Sandbox Mode in your BNBForms account.

      Note: don’t forget to switch to Live mode, update fields with live API Keys and disable Sandbox Mode in your BNBForms account after tests.

  3. Insert Stripe Secret and Public keys to the respective fields of your BNBForms Stripe settings.
  4. api keys stipe

  5. Save the changes.

How to set up webhooks

To connect webhooks, follow the steps in the “Setting up webhooks” tutorial.

To add a new endpoint, in your Stripe account, go to Developers > Webhooks > + Add endpoint.

Webhook Secret – This is your Webhook ID that you can find in the upper right corner of the endpoint page.

Webhook-secret-ID

Endpoint URL – The URL in Stripe settings of your BNBForms dashboard. It is displayed when Stripe is turned on (check the box “Enable “Pay by card (Stripe)”, then save the changes).

webhook destination URL

You need to choose these event types when setting up webhook endpoints:

charge.failed
charge.succeeded
source.canceled
source.chargeable
source.failed