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.