WebService::Braintree::Customer
This class creates, updates, deletes, and finds customers.
This takes a hashref of parameters and returns the customer created.
This takes a customer_id returns the customer (if it exists).
This takes a customer_id and a hashref of parameters. It will update the corresponding customer (if found) and returns the updated customer.
This takes a customer_id and deletes the corresponding customer (if found).
This takes a subref which is used to set the search parameters and returns a collection of Customer objects.
Please see Searching for more information on the subref and how it works.
This returns all the customers.
This takes a customer_id. It returns all the transactions for that customer.
This takes a customer_id and a hashref of parameters. It will create a credit transaction for the corresponding customer and return it;
This takes a customer_id and a hashref of parameters. It will create a sale transaction for the corresponding customer and return it;
In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:
This returns a list of all the payment types supported by this class.
This returns an arrayref of all available payment methods across all types.
To install WebService::Braintree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Braintree
CPAN shell
perl -MCPAN -e shell install WebService::Braintree
For more information on module installation, please visit the detailed CPAN module installation guide.