> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/payments/llms.txt)
> Source: https://docs.saleor.io/api-reference/payments/mutations/payment-gateway-initialize

# paymentGatewayInitialize Mutation

Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order.

```graphql
paymentGatewayInitialize(
  amount: PositiveDecimal
  id: ID!
  paymentGateways: [PaymentGatewayToInitialize!]
): PaymentGatewayInitialize
```

Details

```graphql
type PaymentGatewayInitialize {
  gatewayConfigs: [PaymentGatewayConfig!]
  errors: [PaymentGatewayInitializeError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="amount"></a>

#### [`amount`](#amount) ● [`PositiveDecimal`](/api-reference/miscellaneous/scalars/positive-decimal.md)

The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send.

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

The ID of the checkout or order.

<a id="payment-gateways"></a>

#### [`paymentGateways`](#payment-gateways) ● [`[PaymentGatewayToInitialize!]`](/api-reference/payments/inputs/payment-gateway-to-initialize.md)

List of payment gateways to initialize.

<a id="type"></a>

### Type

<a id="paymentgatewayinitialize"></a>

#### [`PaymentGatewayInitialize`](/api-reference/payments/objects/payment-gateway-initialize.md)

Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order.
