This page has moved and will be redirected soon. See Migrated topics for the complete list.

createBraintreeClientToken mutation

The createBraintreeClientToken mutation creates the client token for Braintree Javascript SDK initialization.

Syntax

1
2
3
4
5
mutation {
  createBraintreeClientToken {
    String
  }
}

Example usage

Request:

1
2
3
mutation {
  createBraintreeClientToken
}

Response:

1
2
3
4
5
{
  "data": {
    "createBraintreeClientToken": "4JQaNVJokOpFxrykGVvYrjhiNv9qt31C" #gitleaks:allow
  }
}

Errors

Error Description
The Braintree payment method is not active. The Braintree payment method is disabled in admin.