# Payment Elements Form (Pro)

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2Fh414E5OAomjgOFX6D5yp%2Fcontact-form-7-payment-element.png?alt=media&#x26;token=429e8d6b-cd19-4f1c-8774-18d9817a082a" alt=""><figcaption></figcaption></figure></div>

{% hint style="danger" %}
In this sample, the Professional plan is required.
{% endhint %}

Navigate to Contact From -> Add New, we will use two parts:

* Stripe Payment Element Field
* Stripe Checkout Form tab

<figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2F0kNeqCUK78s3bmBbA7OK%2FGroup%2040.png?alt=media&#x26;token=a9c76de7-fc27-4630-b63a-793309ef6251" alt=""><figcaption></figcaption></figure>

### Insert Stripe Payment Element Field

In the form editor, click the **Stripe Payment Element** button. Give a name and insert this field. Here we can see the shortcode **stripe\_payment\_element** is generated into the form.

Some examples:

{% code overflow="wrap" %}

```
[stripe_payment_element my-field payment_methods:automatic theme:stripe layout:tabs apple_pay google_pay]
```

{% endcode %}

{% code overflow="wrap" %}

```
[stripe_payment_element my-field payment_methods:card| payment_methods:sofort|google_pay|apple_pay theme:night layout:accordion apple_pay google_pay accordion_radio accordion_spaced]
```

{% endcode %}

<figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2FJEBVbLOFD9Bswvh10e02%2Fimage.png?alt=media&#x26;token=d04e172e-2c1f-4f31-acbc-2f3778d595ca" alt=""><figcaption></figcaption></figure>

#### **Payment Methods**

By default, the stripe checkout page will list all available payment methods in which your stripe account is activated. If you want only to allow some of them, you can choose them here.

#### Theme:

Three themes supported so far: Stripe, Night, Flat

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2Fg1zTOPPQjqRrmFW0OnOW%2Fimage.png?alt=media&#x26;token=0fa40957-00be-4929-a7b2-e91de3fd5a97" alt=""><figcaption></figcaption></figure></div>

#### Layout

Customize the Payment Element’s layout to fit your checkout flow: Two layouts supported so far: **Tabs**, **Accordion**

<figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2Fhq3Ki8leeuXDOjlAxos5%2Fimage.png?alt=media&#x26;token=5fa508c0-7097-4065-b79f-f3b970755204" alt=""><figcaption></figcaption></figure>

#### Default Collapsed

Controls if the Payment Element renders in a collapsed state.

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2Fdmi5gUUVhYj5Y77bbSb4%2Fimage.png?alt=media&#x26;token=89acbd9a-206b-48bb-90d1-9f0d908892e3" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2FrWtNYqJDrxyXp2imgsbS%2Fimage.png?alt=media&#x26;token=2c2096d0-963e-4e9f-90c2-5bf8e33806fb" alt=""><figcaption></figcaption></figure></div>

#### Include Radio (Only for Accordion layout)

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2F5bWl3FUmWtw1DUmrmuGZ%2Fimage.png?alt=media&#x26;token=076e0a17-c76c-4aca-b10e-b4fba7ab3102" alt=""><figcaption></figcaption></figure></div>

#### Include Spaces (Only for Accordion layout)

<div align="left"><figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2FjsDBLsKmhDEzsY0uZpWG%2Fimage.png?alt=media&#x26;token=5a836ec5-e965-4fc1-bd12-9a88b9f01329" alt=""><figcaption></figcaption></figure></div>

### Checkout Configuration

After inserting this field, we can now set up the pricing under the **Stripe Checkout Form** tab.

<figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2Fh8Antri3eWa4nvZqdeVq%2Fimage.png?alt=media&#x26;token=dee6f09e-d54c-4cb0-b540-3b15f6664acd" alt=""><figcaption></figcaption></figure>

### Preview & Testing

<figure><img src="https://4063963230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAM7rgk1NDmyfuYMNPCf%2Fuploads%2F5oUJHgt568EGbjfEKXFI%2Fimage.png?alt=media&#x26;token=7b636ada-21aa-4e49-b889-e6810ed7a430" alt=""><figcaption></figcaption></figure>


---

# 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://cf7-docs.payaddons.com/basics/contact-form-7-payment-element.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.
