createPaymentMethod

This mutation allows the user to create a payment method.

Sample mutation

mutation createPaymentMethod($orgID:UUID1!,$input:PaymentMethodCreateInput!){
  createPaymentMethod(orgID:$orgID input:$input){
      ... on OnchainPaymentMethodOutput{
      id
      type
      status
    }
  }
}

Sample variable

{
  "orgID": "5a198d09-e243-491f-991a-f79e1cecdcc3",
  "input": {
     "paymentType": "OnchainPayment"
  }
}

Sample response

{
  "data": {
    "createPaymentMethod": {
      "id": "93f24c5e-2e87-4e02-ae67-fa4147bd3214",
      "type": "OnchainPayment",
      "status": "complete"
    }
  }
}

Arguments

NameTypeDescriptionRequired
orgIDUUID1The organization ID.Yes
inputObjectThe input to create payment method.Yes

Fields

NameTypeDescription
PaymentMethodOutputObjectContains information from CreditCardPaymentMethodOutput, ACHPaymentMethodOutput ,CryptoPaymentMethodOutput and WirePaymentMethodOutput.