Sha256: 62647249364ab08c7c76748730093cc1d46e1d1979c19815cc8d731d891ac6df

Contents?: true

Size: 878 Bytes

Versions: 50

Compression:

Stored size: 878 Bytes

Contents

module Killbill #:nodoc:
  module <%= class_name %> #:nodoc:
    class <%= class_name %>PaymentMethod < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod

      self.table_name = '<%= identifier %>_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::<%= class_name %>::<%= class_name %>PaymentMethod)
        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

50 entries across 50 versions & 1 rubygems

Version Path
killbill-9.4.1 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.6 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.4.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.3.2 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.3.1 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.5 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.3.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.2.2 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.4 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.3 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.2.1 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-9.2.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.2 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.1 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.3.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.2.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.1.0 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-7.0.6 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.0.1 generators/active_merchant/templates/lib/models/payment_method.rb
killbill-8.0.0 generators/active_merchant/templates/lib/models/payment_method.rb