# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.ditcal.com/integrations/stripe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
