Sha256: 7e879b0ba61155d4570b583dec0f3661a3cb48dbfd8cb4d82148dd941054f4f3

Contents?: true

Size: 719 Bytes

Versions: 21

Compression:

Stored size: 719 Bytes

Contents

module Killbill #:nodoc:
  module Orbital #:nodoc:
    class OrbitalPaymentMethod < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod

      self.table_name = 'orbital_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::Orbital::OrbitalPaymentMethod)
        super(kb_account_id,
              kb_payment_method_id,
              kb_tenant_id,
              cc_or_token,
              response,
              options,
              {
                :cc_number => extract(response, 'cc_account_num'),
              }.merge!(extra_params),
              model)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
killbill-orbital-0.0.1 lib/orbital/models/payment_method.rb