# Stripe - Customers

Stripe - Customers component is searching for Stripe Customers. It can search by:

1. Email - when the API Name of Customer Email Field is provided
2. Metadata - when the API name of the field is provided that contains the record id to find Customers In Stripe by `rs_pay_recordId` metadata key
3. Search Query - when the Customer Search Query is provided that follows [Stripe Query Language](https://docs.stripe.com/search#query-fields-for-customers) rules and supports the merge fields i.e: `name~{!Name} OR email~{!Email}`

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2Fx5YEGr7xvGY0AhfcqVYc%2Fimage.png?alt=media&#x26;token=cd922ff4-bd7e-4e71-ace0-7e371c475206" alt=""><figcaption></figcaption></figure>

Usually this component is added on the Contact page and is searching for Stripe Customers by Contact Email.

The component allows to create a new Stripe Customer:

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2Fu6MSDBUkmkdBc8qOIdBc%2Fimage.png?alt=media&#x26;token=fd92ab0d-c01a-4a70-a97b-0d5347707446" alt=""><figcaption></figcaption></figure>



Please see the list of the attributes to configure the component:

| Attribute                     | Description                                                                |
| ----------------------------- | -------------------------------------------------------------------------- |
| Card Title                    | The title of the card                                                      |
| Customer Email Field          | The API name of the field that contains the customer email                 |
| Record Id Field               | The API name of the field to find Customers in Stripe by rs\_pay\_recordId |
| Customers Search Query        | The search query to filter the Customers                                   |
| Customers Limit               | The number of Customer records to load                                     |
| Entities Limit                | The number of Payment/Subscriptions/etc. to load                           |
| Show Upcoming Invoice Section | Show the Upcoming Invoice section                                          |
| Show Subscriptions Section    | Show the Subscriptions section                                             |
| Show Payments Section         | Show the Payments section                                                  |
| Show Invoices Section         | Show the Invoices section                                                  |
| Show Payment Methods Section  | Show the Payment Methods section                                           |
| Default Section               | Default section to be shown when the card loads.                           |



#### Upcoming Invoice

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2FUp9wcoz1jEwuXyiFqEnA%2Fimage.png?alt=media&#x26;token=291ead63-fd43-4d2d-9654-a8d2186e6b5f" alt=""><figcaption></figcaption></figure>

#### Subscriptions

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2Fb9YKPkfhKAttoJq3UBSQ%2Fimage.png?alt=media&#x26;token=d968234d-661e-4968-9d74-4713e6fefc18" alt=""><figcaption></figcaption></figure>

#### Payments

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2FAE0nRC653hiuumipw4zp%2Fimage.png?alt=media&#x26;token=bf657c21-0417-4916-933e-542c5d5c14f0" alt=""><figcaption></figcaption></figure>

#### Invoices

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2FYAFrlhcFxDuIb6SJQHOu%2Fimage.png?alt=media&#x26;token=43a62cf0-7d72-432d-bf0e-adc75c526a2f" alt=""><figcaption></figcaption></figure>

#### Payment Methods

<figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2FDgHf9hxave6xr938gpBx%2Fimage.png?alt=media&#x26;token=8473cf07-0565-4ebc-aa6c-ff2c71184444" alt=""><figcaption></figcaption></figure>

This section also allows to:

1.  Create a new Payment Method

    <figure><img src="https://3102010779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7icqDUNgsdQAb9yNX2az%2Fuploads%2FxYI0syfUDG61iYxaiYiQ%2Fimage.png?alt=media&#x26;token=299b168d-8812-403d-af16-05a0811ac864" alt=""><figcaption></figcaption></figure>
2. Set the Payment Method as a default for the Stripe Customer
3. Delete Payment Method
