Class: Killbill::FirstdataE4::FirstdataE4PaymentMethod
- Inherits:
-
Plugin::ActiveMerchant::ActiveRecord::PaymentMethod
- Object
- Plugin::ActiveMerchant::ActiveRecord::PaymentMethod
- Killbill::FirstdataE4::FirstdataE4PaymentMethod
- Defined in:
- lib/firstdata_e4/models/payment_method.rb
Class Method Summary collapse
Class Method Details
.from_response(kb_account_id, kb_payment_method_id, kb_tenant_id, cc_or_token, response, options, extra_params = {}, model = ::Killbill::FirstdataE4::FirstdataE4PaymentMethod) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/firstdata_e4/models/payment_method.rb', line 7 def self.from_response(kb_account_id, kb_payment_method_id, kb_tenant_id, cc_or_token, response, , extra_params = {}, model = ::Killbill::FirstdataE4::FirstdataE4PaymentMethod) super(kb_account_id, kb_payment_method_id, kb_tenant_id, cc_or_token, response, , { # Pass custom key/values here #:params_id => extract(response, 'id'), #:params_card_id => extract(response, 'card', 'id') }.merge!(extra_params), model) end |