PHP 7.3 reaches end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in April 2022. You may want to consider planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.

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.