Sha256: 6c697f5f9f344f0b04ad4a74d7280a19f9f4cfe888412f4da1565cecbdbfbe44
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 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 def cc_token braintree_credit_card_token(TEST_CC_NUMBER, '04/2016') end end
Version data entries
5 entries across 5 versions & 1 rubygems