lib/active_merchant/billing/integrations/quickpay/helper.rb in activemerchant-1.21.0 vs lib/active_merchant/billing/integrations/quickpay/helper.rb in activemerchant-1.22.0

- old
+ new

@@ -3,16 +3,17 @@ module Integrations #:nodoc: module Quickpay class Helper < ActiveMerchant::Billing::Integrations::Helper def initialize(order, account, options = {}) + md5secret options.delete(:credential2) super add_field('protocol', '3') add_field('msgtype', 'authorize') add_field('language', 'da') add_field('autocapture', 0) - add_field('testmode', 0) + add_field('testmode', test? ? 1 : 0) add_field('ordernumber', format_order_number(order)) end def md5secret(value) @md5secret = value @@ -56,11 +57,9 @@ mapping :cardtypelock, 'cardtypelock' mapping :description, 'description' mapping :ipaddress, 'ipaddress' mapping :testmode, 'testmode' - - mapping :credential2, 'md5secret' mapping :customer, '' mapping :billing_address, {} mapping :tax, '' mapping :shipping, ''