> For the complete documentation index, see [llms.txt](https://help.ditcal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.ditcal.com/integrations/stripe.md).

# Stripe

## Stripe Integration for Payments

DitCal allows you to accept payments for bookings by integrating with Stripe. This guide will walk you through setting up Stripe for your event bookings and explain how the payment process works.

<figure><img src="/files/6VCd4WQk6oIX4lyaOO1r" alt=""><figcaption></figcaption></figure>

***

### How to Set Up Stripe Integration

Follow these steps to enable and configure Stripe payments for your event bookings:

1. **Create an Event**
   * Navigate to your event settings in DitCal.
2. **Enable Payment Configuration**
   * In the event settings, locate the **Payment** configuration section.
   * Turn on **"Accept Payments for Bookings"**.
3. **Set Payment Details**
   * Specify the **amount** and **currency** customers will be charged.
4. **Configure Reservation Timeout**
   * Define the **reservation timeout** (the time a booking remains pending before it is canceled if no payment is received).
5. **Enter Stripe API Keys**
   * Provide your **Secret Key** and **Publishable Key** from Stripe.
   * To find these keys:
     * Go to [Stripe API Keys Dashboard](https://dashboard.stripe.com/apikeys).
     * Copy both the **Secret Key** and **Publishable Key**.
     * Paste them into DitCal’s Payment Configuration section.

Once configured, payments will be required to confirm bookings for this event.

***

### How Stripe Payments Work in DitCal

* **No Transaction Commission**: DitCal does not charge any additional transaction fees.
* **Pending Payment Status**: If an event has "Accept Payments for Bookings" enabled, every booking will initially be marked as **pending payment**.
* **Payment Countdown**:
  * A countdown timer is displayed to the person booking.
  * They must complete the payment before the timer expires.
  * If they fail to pay within the set reservation timeout, the booking is automatically canceled, and the time slot is released for others to book.

By integrating Stripe with DitCal, you ensure that bookings requiring payment are seamlessly handled with automated confirmations and reservation timeouts.
