Method: ActiveMerchant::Billing::TrustCommerceGateway#store
- Defined in:
- lib/active_merchant/billing/gateways/trust_commerce.rb
#store(creditcard, options = {}) ⇒ Object
store() requires a TrustCommerce account that is activated for Citadel. You can call it with a credit card and a billing ID you would like to use to reference the stored credit card info for future captures. Use ‘verify’ to specify whether you want to simply store the card in the DB, or you want TC to verify the data first.
306 307 308 309 310 311 312 313 314 315 316 317 |
# File 'lib/active_merchant/billing/gateways/trust_commerce.rb', line 306 def store(creditcard, = {}) parameters = { verify: [:verify] || 'y', billingid: [:billingid] || [:billing_id] || nil } add_creditcard(parameters, creditcard) add_addresses(parameters, ) add_custom_fields(parameters, ) commit('store', parameters) end |