Class: Braintree::CreditCard


More Information

For more detailed documentation on CreditCards, see www.braintreepaymentsolutions.com/gateway/credit-card-api For more detailed documentation on CreditCard verification, see www.braintreepaymentsolutions.com/gateway/credit-card-verification-api


Attributes
[R] billing_address
[R] bin
[R] card_type
[R] cardholder_name
[R] created_at
[R] customer_id
[R] expiration_month
[R] expiration_year
[R] last_4
[R] subscriptions
[R] token
[R] updated_at

Public Class Methods
_fetch_expired(ids)
_fetch_expiring_between(formatted_start_date, formatted_end_date, ids)
create(attributes)
create!(attributes)
create_credit_card_url()

The transparent redirect URL to use to create a credit card.

create_from_transparent_redirect(query_string)
credit(token, transaction_attributes)
credit!(token, transaction_attributes)
delete(token)
expired(options = {})

Returns a ResourceCollection of expired credit cards.

expiring_between(start_date, end_date, options = {})

Returns a ResourceCollection of credit cards expiring between start_date and end_date inclusive. Only the month and year of the start and end dates are used.

find(token)

Finds the credit card with the given token. Raises a NotFoundError if it cannot be found.

sale(token, transaction_attributes)
sale!(token, transaction_attributes)
update(token, attributes)
update!(token, attributes)
update_credit_card_url()

The transparent redirect URL to use to update a credit card.

update_from_transparent_redirect(query_string)

Public Instance Methods
==(other)

Returns true if other is a CreditCard with the same token.

credit(transaction_attributes)

Creates a credit transaction for this credit card.

credit!(transaction_attributes)
default?()

Returns true if this credit card is the customer‘s default.

delete()
expiration_date()

Expiration date formatted as MM/YYYY

expired?()

Returns true if the credit card is expired.

masked_number()
sale(transaction_attributes)

Creates a sale transaction for this credit card.

sale!(transaction_attributes)
update(attributes)
update!(attributes)

© Copyright 2009 Braintree Payment Solutions. All Rights Reserved.