preparePaymentMethod

This query allows to prepare the requested payment method.

General Pattern

query{
  preparePaymentMethod(paymentMethodType:PaymentType!){
    field_1
  }
}

Sample query

query{
  preparePaymentMethod(paymentMethodType:ACH){
    ... on ACHPaymentMethodPrepareStatementOutput{
      linkToken
    }
  }
}

Sample response

{
  "data": {
    "preparePaymentMethod": {
      "linkToken": "link-sandbox-f2c8a7bb-1fa0-4d1b-8d98-35d20cfbbb6c"
    }
  }
}

Arguments

Name

Type

Description

Required

paymentMethodType

enum

The requested payment method. The value can be either ACH, Wire or CreditCard.

Yes

Returns

Name

Type

Description

PaymentMethodPrepareStatementOutput

object

An object loaded by link token.

Example

Create a payment method preparation using ACH: