Adobe Commerce 2.3 reached end of support in September 2022.

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"
  }
}

Errors

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