Sha256: f7710710cfc2e4214ff52791c504b03d248ec311c10b1001e6a56e55595af775
Contents?: true
Size: 418 Bytes
Versions: 4
Compression:
Stored size: 418 Bytes
Contents
module BraintreeHelpers def create_braintree_customer(cc_number, expiration_date) Braintree::Customer.create( email: "me@example.com", credit_card: { number: cc_number, expiration_date: expiration_date } ).customer end def braintree_credit_card_token(cc_number, expiration_date) create_braintree_customer(cc_number, expiration_date).credit_cards[0].token end end
Version data entries
4 entries across 4 versions & 1 rubygems