createBraintreeClientToken mutation
The createBraintreeClientToken mutation creates the client token for Braintree JavaScript SDK initialization.
Syntax
Copied to your clipboardmutation {createBraintreeClientToken {String}}
Reference
The createBraintreeClientToken reference provides detailed information about the types and fields defined in this mutation.
Example usage
Request:
Copied to your clipboardmutation {createBraintreeClientToken}
Response:
Copied to your clipboard{"data": {"createBraintreeClientToken": "4JQaNVJokOpFxrykGVvYrjhiNv9qt31C"}}
Errors
| Error | Description |
|---|---|
The Braintree payment method is not active. | The Braintree payment method is disabled in admin. |


