Sha256: adbedc49999ed2a9caba2eceb1edfe2df4365d76d08672d472cb4340667293b9

Contents?: true

Size: 702 Bytes

Versions: 5

Compression:

Stored size: 702 Bytes

Contents

module Killbill #:nodoc:
  module Litle #:nodoc:
    class LitlePaymentMethod < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod

      self.table_name = 'litle_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::Litle::LitlePaymentMethod)
        super(kb_account_id,
              kb_payment_method_id,
              kb_tenant_id,
              cc_or_token,
              response,
              options,
              {
                  :token => extract(response, 'litleToken')
              }.merge!(extra_params),
              model)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
killbill-litle-5.0.0 lib/litle/models/payment_method.rb
killbill-litle-4.0.1 lib/litle/models/payment_method.rb
killbill-litle-4.0.0 lib/litle/models/payment_method.rb
killbill-litle-3.0.0 lib/litle/models/payment_method.rb
killbill-litle-2.0.0 lib/litle/models/payment_method.rb