# PaymentIntentAction

> The `PaymentIntentAction` object.

Source: https://docs.gastrogate.io/docs/api/types/PaymentIntentAction

**Kind:** Objects

## Fields

### `type`

[`PaymentIntentActionType`](https://docs.gastrogate.io/docs/api/types/PaymentIntentActionType.md)

### `url`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

### `deadline`

[`DateTime`](https://docs.gastrogate.io/docs/api/types/DateTime.md)

If this field is set, the PaymentIntent could transition into the failed state if the user does not perform the action within the given time.

### `statusUrl`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

For type "OpenSwish" and "UseIntegratedTerminal" this is an url which will give the current status of the payment request.

When receiving a HTTP GET request, the response will contain a JSON document with a single field "status", which can have one of the following values:

- 'CANCELED'
- 'CREATED'
- 'DECLINED'
- 'ERROR'
- 'PAID'

### `stripeClientSecret`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

### `qrCodeValue`

[`String`](https://docs.gastrogate.io/docs/api/types/String.md)

For type "OpenSwish" this is the value of the QR code to display to the end user.

## How to get it

This type is returned by:

- [`PaymentIntent.action`](https://docs.gastrogate.io/docs/api/types/PaymentIntent.md#action) (field on [`PaymentIntent`](https://docs.gastrogate.io/docs/api/types/PaymentIntent.md))
