Creating Addresses
Addresses stored in the vault need to be associated to a customer. There is a limit of 55 addresses that can be saved per customer. This page describes adding an address to an existing customer. Addresses can also be created with a credit card or created with a customer and a credit card.
Adding an Address to a Customer
The only attribute required to create an address is the customer_id.
result = Braintree::Address.create(
:customer_id => '131866',
:first_name => 'Jenna',
:last_name => 'Smith',
:company => 'Braintree',
:street_address => '1 E Main St',
:extended_address => 'Suite 403',
:locality => 'Chicago',
:region => 'Illinois',
:postal_code => '60622',
:country_code_alpha2 => 'US'
)