Sha256: ddfb88a9846b771cc39ee03ca1ddb6aebed62da7a6ade19f074aee1feebe088a
Contents?: true
Size: 499 Bytes
Versions: 7
Compression:
Stored size: 499 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
7 entries across 7 versions & 1 rubygems