> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# preparePaymentMethodForm

> Get context to render a payment method form



**mutation** `preparePaymentMethodForm(input: PreparePaymentMethodFormInput!): PreparedPaymentMethodForm!`

## Arguments

**`input`**: `PreparePaymentMethodFormInput!` (required)

Input for preparing a payment method form

## Returns

`PreparedPaymentMethodForm!`

**`integrationId`**: `String!`

The integration id of the payment method

---

**`paymentMethodForm`**: `PaymentMethodForm!`

The payment method form details

---

**`vendorIdentifier`**: `VendorIdentifier!`

The integration type to attach the payment method to

## Examples

```graphql Mutation
mutation PreparePaymentMethodForm($input: PreparePaymentMethodFormInput!) {
  preparePaymentMethodForm(input: $input) {
    integrationId
    paymentMethodForm {
      __typename
      ... on AirwallexPaymentMethodForm {
        clientSecret
        metadata {
          __typename
        }
      }
    }
    vendorIdentifier
  }
}
```

```json Variables
{
  "input": {
    "customerId": "string"
  }
}
```

```json Response
{
  "data": {
    "preparePaymentMethodForm": {
      "integrationId": "string",
      "paymentMethodForm": {
        "__typename": "AirwallexPaymentMethodForm",
        "clientSecret": "string",
        "metadata": {
          "__typename": "AirwallexPaymentMethodFormMetadata"
        }
      },
      "vendorIdentifier": "AIRWALLEX"
    }
  }
}
```


## Related topics

- [Rate Limits](https://docs.stigg.io/api-and-sdks/integration/graphql/rate-limits.md)
- [PreparePaymentMethodFormInput](https://docs.stigg.io/graphql-reference/types/PreparePaymentMethodFormInput.md)
- [PreparedPaymentMethodForm](https://docs.stigg.io/graphql-reference/types/PreparedPaymentMethodForm.md)
- [PaymentMethodForm](https://docs.stigg.io/graphql-reference/types/PaymentMethodForm.md)
- [StripePaymentMethodForm](https://docs.stigg.io/graphql-reference/types/StripePaymentMethodForm.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.