Method: ActiveMerchant::Billing::BalancedGateway#store
- Defined in:
- lib/active_merchant/billing/gateways/balanced.rb
#store(credit_card, options = {}) ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/active_merchant/billing/gateways/balanced.rb', line 102 def store(credit_card, = {}) post = {} post[:number] = credit_card.number post[:expiration_month] = credit_card.month post[:expiration_year] = credit_card.year post[:cvv] = credit_card.verification_value if credit_card.verification_value? post[:name] = credit_card.name if credit_card.name add_address(post, ) commit('cards', 'cards', post) end |