# `Create_Setup_Intention` request class

[ℹ️ This document is a part of __WooCommerce Payments Server Requests__](../README.md)

## Description

The `WCPay\Core\Server\Request\Create_Setup_Intention` class is used to construct the request for creating a setup intention.

## Parameters


| Parameter              | Setter                                               | Immutable | Required | Default value |
|------------------------|------------------------------------------------------|:---------:|:--------:|:-------------:|
| `customer`             | `set_customer( string $customer_id )`                |    Yes    |   Yes    |       -       |
| `payment_method_types` | `set_payment_method_types( array $payment_methods )` |     -     |   Yes    |       -       |


## Filter

- Name: `wcpay_create_setup_intent_request`
- Arguments: None

## Example:

```php
$request = Create_Setup_Intention::create();
$request->set_customer( $customer_id );
$request->set_payment_method_types( $payment_methods );
$request->send();
```
