add the gem

add the initializer

set up an “after_create” on whatever you’re tying the credit cards to and add them to braintree as a customer when its created

create a credit card model (only store masked cc #)

recap: create a customer, create a credit card attached to that customer, charge the card.

when you create a customer or card, you have to pass it in a id/token that you generate yourself

when you create the credit card, you pass in the token you generated for the customer

when you charge the credit card, you pass the token you created for the card

heres the credit card table migration