Sha256: e5957731dcaabe5581e1c8b130cb1c8fe8508038470ab48aefe84346a8c55a5c

Contents?: true

Size: 848 Bytes

Versions: 33

Compression:

Stored size: 848 Bytes

Contents

module Killbill #:nodoc:
  module Cybersource #:nodoc:
    class CybersourcePaymentMethod < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod

      self.table_name = 'cybersource_payment_methods'

      def self.from_response(kb_account_id, kb_payment_method_id, kb_tenant_id, cc_or_token, response, options, extra_params = {}, model = ::Killbill::Cybersource::CybersourcePaymentMethod)
        super(kb_account_id,
              kb_payment_method_id,
              kb_tenant_id,
              cc_or_token,
              response,
              options,
              {
                  # Pass custom key/values here
                  #:params_id => extract(response, 'id'),
                  #:params_card_id => extract(response, 'card', 'id')
              }.merge!(extra_params),
              model)
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
killbill-cybersource-4.0.3 lib/cybersource/models/payment_method.rb
killbill-cybersource-4.0.2 lib/cybersource/models/payment_method.rb
killbill-cybersource-4.0.1 lib/cybersource/models/payment_method.rb
killbill-cybersource-4.0.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-3.3.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-3.2.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-3.1.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-3.0.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-2.0.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-1.0.0 lib/cybersource/models/payment_method.rb
killbill-cybersource-0.0.4 lib/cybersource/models/payment_method.rb
killbill-cybersource-0.0.2 lib/cybersource/models/payment_method.rb
killbill-cybersource-0.0.1 lib/cybersource/models/payment_method.rb