NAME

WebService::Braintree::CreditCard

PURPOSE

This class creates, updates, deletes, and finds credit cards.

CLASS METHODS

create()

This takes a hashref of parameters and returns a response with the credit_card() set.

from_nonce()

This takes a nonce and returns a response with the credit_card() set.

find()

This takes a token and returns a response with the credit_card() set.

update()

This takes a token and a hashref of parameters. It will update the corresponding credit card (if found) and return a response with the credit_card() set.

delete()

This takes a token. It will delete the corresponding credit card (if found) and return a response with the credit_card() set.

credit()

This takes a token and an optional hashref of parameters. This delegates to "credit" in WebService::Braintree::Transaction, setting the payment_method_token appropriately.

sale()

This takes a token and an optional hashref of parameters. This delegates to "sale" in WebService::Braintree::Transaction, setting the payment_method_token appropriately.

expired()

This returns a collection of all the expired credit cards.

expired_cards() is an alias to this method.

expiring_between()

This takes two DateTimes and returns a collection of all the credit cards expiring between them.