WebService::Braintree::Subscription
This class creates, finds, updates, cancels, retries charges on, searches for, and lists all subscriptions.
This takes a hashref of parameters and returns the subscription created.
This takes a subscription_id and returns the subscription (if it exists).
This takes a subcsription_id and a hashref of parameters. It will update the corresponding subscription (if found) and returns the updated subscription.
This takes a subscription_id and cancels (aka, deletes) the corresponding subscription (if found).
This takes a subscription_id and an amount and attempts to retry a charge for that amount to that subscription (if found).
This takes a subref which is used to set the search parameters and returns a subscription object.
Please see Searching for more information on the subref and how it works.
This returns all the subscriptions.
In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:
This returns a list of all transactions that have been made against this subscription. This is a list of WebService::Braintree::Transaction objects.
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.