githubEdit

paymentMethodCreate

Graphql fields and variables for the paymentMethodCreate mutation

Create a payment method

Scope required: billing:write

mutation paymentMethodCreate ($accountId: ID!, $pluginGuid: ID!, $token: String!) {
  paymentMethodCreate (accountId: $accountId, pluginGuid: $pluginGuid, token: $token) {
      errors
      paymentMethod {
        accountId
        createdAt
        disabled
        expirationDate
        failureCode
        id
        isDefault
        lastSuccess
        pluginId
        updatedAt
      }
  }
}

Arguments

Name
Type
Description

accountId

ID

pluginGuid

ID

token

String

Response

Name
Type
Description

errors

List (String)

paymentMethod

Last updated

Was this helpful?