NAME

WebService::Braintree::ClientToken

PURPOSE

This class generates the client token needed by client-side SDKs, such as Mobile and Javascript.

CLASS METHODS

generate()

This takes a hashref of parameters and returns the client token created by Braintree. Unlike all other interfaces, this one does NOT return an object. Instead, just the token string is returned.

WebService::Braintree::ClientToken->generate({
    key1 => 'value1',
    key2 => 'value2',
});

Default values

version

This will default to the DEFAULT_VERSION of 2.

OBJECT METHODS

None. Please see "generate()" for more information.

TODO

Need to document the keys and values that are returned
Need to document the required and optional input parameters
Need to document the possible errors/exceptions