Sha256: b281b41aa726b831570314d716a64844a477ff0aacfcab7bb878189cec24af3a
Contents?: true
Size: 977 Bytes
Versions: 1
Compression:
Stored size: 977 Bytes
Contents
module Killbill #:nodoc: module Bitpay #:nodoc: class BitpayResponse < ::Killbill::Plugin::ActiveMerchant::ActiveRecord::Response self.table_name = 'bitpay_responses' has_one :bitpay_transaction def self.from_response(api_call, kb_account_id, kb_payment_id, kb_payment_transaction_id, transaction_type, payment_processor_account_id, kb_tenant_id, response, extra_params = {}, model = ::Killbill::Bitpay::BitpayResponse) super(api_call, kb_account_id, kb_payment_id, kb_payment_transaction_id, transaction_type, payment_processor_account_id, kb_tenant_id, response, { # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
killbill-bitpay-0.0.1 | lib/bitpay/models/response.rb |