++ed by:

1 non-PAUSE user.

Kieren Diment

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 an optional hashref of parameters. It will delete the corresponding payment method (if found).

The optional hashref can contain the following key(s):

  • revoke_all_grants

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