createBraintreeClientToken mutation

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

Syntax

mutation: {createBraintreeClientToken}: String

Example usage

Request

1
2
3
mutation {
  createBraintreeClientToken
}

Response

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