NAME
WebService::Braintree::PayPalAccount
PURPOSE
This class finds, creates, updates, and deletes PayPal accounts.
CLASS METHODS
find()
This takes a token and returns the PayPal account (if it exists).
create()
This takes a hashref of parameters. It will create a PayPal account.
update()
This takes a token and a hashref of parameters. It will update the corresponding PayPal account (if found) and returns the updated PayPal account.
delete()
This takes a token and deletes the corresponding PayPal account (if found).
sale()
This takes a token and a hashref of transaction parameters and creates a sale with that token.
OBJECT METHODS
In addition to the methods provided by the keys returned from Braintree, this class provides the following methods:
email()
NOTES
Most of the classes normally used in WebService::Braintree inherit from "" in WebService::Braintree::ResultObject. This class, however, inherits from "" in WebService::Braintree::PaymentMethod. The primary benefit of this is that these objects have a token()
attribute.