> ## 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.

# initAddStripeCustomerPaymentMethod

> Initialize a payment method form for a customer



**mutation** `initAddStripeCustomerPaymentMethod(input: InitAddStripeCustomerPaymentMethodInput!): InitAddStripeCustomerPaymentMethod!`

## Arguments

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

Input for initializing a payment method form for a customer

## Returns

`InitAddStripeCustomerPaymentMethod!`

**`paymentIntentClientSecret`**: `String!`

The client secret for the payment method form

## Examples

```graphql Mutation
mutation InitAddStripeCustomerPaymentMethod($input: InitAddStripeCustomerPaymentMethodInput!) {
  initAddStripeCustomerPaymentMethod(input: $input) {
    paymentIntentClientSecret
  }
}
```

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

```json Response
{
  "data": {
    "initAddStripeCustomerPaymentMethod": {
      "paymentIntentClientSecret": "string"
    }
  }
}
```


## Related topics

- [InitAddStripeCustomerPaymentMethod](https://docs.stigg.io/graphql-reference/types/InitAddStripeCustomerPaymentMethod.md)
- [InitAddStripeCustomerPaymentMethodInput](https://docs.stigg.io/graphql-reference/types/InitAddStripeCustomerPaymentMethodInput.md)
- [InitStripePaymentMethodError](https://docs.stigg.io/graphql-reference/types/InitStripePaymentMethodError.md)
- [Integration when using Stripe Elements for checkout](https://docs.stigg.io/documentation/native-integrations/billing/stripe/integration-when-using-stripe-elements-for-checkout.md)
- [Managing customers payment methods](https://docs.stigg.io/documentation/managing-customers-and-subscriptions/customers/managing-customers-payment-method.md)


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