Sha256: a17d36d96318a623db12af8a1bb9fe26fc8ce7eb0c466477ef6020546e7d6e37

Contents?: true

Size: 839 Bytes

Versions: 5

Compression:

Stored size: 839 Bytes

Contents

module Killbill #:nodoc:
  module PayuLatam #:nodoc:
    class PayuLatamPaymentMethod < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::PaymentMethod

      self.table_name = 'payu_latam_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::PayuLatam::PayuLatamPaymentMethod)
        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

5 entries across 5 versions & 1 rubygems

Version Path
killbill-payu-latam-0.3.0 lib/payu_latam/models/payment_method.rb
killbill-payu-latam-0.2.0 lib/payu_latam/models/payment_method.rb
killbill-payu-latam-0.1.0 lib/payu_latam/models/payment_method.rb
killbill-payu-latam-0.0.2 lib/payu_latam/models/payment_method.rb
killbill-payu-latam-0.0.1 lib/payu_latam/models/payment_method.rb