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

# paymentInitialize Mutation

DEPRECATED

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

Initializes payment process when it is required by gateway.

```graphql
paymentInitialize(
  channel: String
  gateway: String!
  paymentData: JSONString
): PaymentInitialize @deprecated
```

Details

```graphql
type PaymentInitialize {
  initializedPayment: PaymentInitialized
  paymentErrors: [PaymentError!]! @deprecated
  errors: [PaymentError!]!
}
```

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

### Arguments

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

#### [`channel`](#channel) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Slug of a channel for which the data should be returned.

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

#### [`gateway`](#gateway) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

A gateway name used to initialize the payment.

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

#### [`paymentData`](#payment-data) ● [`JSONString`](/api-reference/miscellaneous/scalars/jsonstring.md)

Client-side generated data required to initialize the payment.

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

### Type

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

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

Initializes payment process when it is required by gateway.
