Sha256: 421cd92d8f09bb92cc315f8a75e857b71eee3e9018b9290deb90fbb3af65209e

Contents?: true

Size: 960 Bytes

Versions: 34

Compression:

Stored size: 960 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    module Integrations #:nodoc:
      module Dwolla
        class Helper < ActiveMerchant::Billing::Integrations::Helper

          def initialize(order, account, options = {})
            super
            add_field('name', 'Store Purchase')

            if ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
              add_field('test', 'true')
            end 
          end
          
          # Replace with the real mapping
          mapping :account, 'destinationid'
          mapping :credential2, 'key'
          mapping :credential3, 'secret'
          mapping :notify_url, 'callback'
          mapping :return_url, 'redirect'
          mapping :description, 'description'
          mapping :amount, 'amount'
          mapping :tax, 'tax'
          mapping :shipping, 'shipping'
          mapping :order, 'orderid'          
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
activemerchant-1.32.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.32.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.31.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.31.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.30.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
jelaniharris-activemerchant-1.29.2 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.29.3 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.29.2 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.29.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
jelaniharris-activemerchant-1.29.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.29.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-nsp-1.27.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.28.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
yetanothernguyen-activemerchant-1.21.2 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.27.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
yetanothernguyen-activemerchant-1.21.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.26.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.25.0 lib/active_merchant/billing/integrations/dwolla/helper.rb
jelaniharris-activemerchant-1.24.1 lib/active_merchant/billing/integrations/dwolla/helper.rb
activemerchant-1.24.0 lib/active_merchant/billing/integrations/dwolla/helper.rb