The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::Braintree::PaymentMethod

PURPOSE

This class creates and finds payment methods.

CLASS METHODS

create()

This takes a hashref of parameters and returns the payment method created.

update()

This takes a token and a hashref of parameters. It will update the corresponding payment method (if found) and returns the updated payment method.

delete()

This takes a token and deletes the corresponding payment method (if found).

grant()

This takes a token and grants the corresponding payment method (if found).

revoke()

This takes a token and revokes the corresponding payment method (if found).

find()

This takes a token and returns the payment method (if it exists).

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