Sha256: 61c5a17ce4cd1fd935fe8dd61a04a266de4bea38d52f424d2f1731febb6f7bae

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 Bytes

Contents

require File.dirname(__FILE__) + '/bit_pay/helper.rb'
require File.dirname(__FILE__) + '/bit_pay/notification.rb'
require File.dirname(__FILE__) + '/bit_pay/return.rb'

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module BitPay

        mattr_accessor :service_url
        self.service_url = 'https://bitpay.com/invoice'

        mattr_accessor :invoicing_url
        self.invoicing_url = 'https://bitpay.com/api/invoice'

        def self.notification(post)
          Notification.new(post)
        end

        def self.helper(order, account, options = {})
          Helper.new(order, account, options)
        end

        def self.return(query_string, options = {})
          Return.new(query_string)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activemerchant-1.41.0 lib/active_merchant/billing/integrations/bit_pay.rb
activemerchant-1.40.0 lib/active_merchant/billing/integrations/bit_pay.rb