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.1.18 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.17 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.16 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.15 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.14 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.13 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.12 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.11 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.10 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.9 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.8 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.7 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.6 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.5 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.4 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.3 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.2 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.1 lib/orbital/models/payment_method.rb
killbill-orbital-0.0.2 lib/orbital/models/payment_method.rb
killbill-orbital-0.1.0 lib/orbital/models/payment_method.rb