lib/active_merchant/billing/integrations/quickpay/helper.rb in activemerchant-1.38.1 vs lib/active_merchant/billing/integrations/quickpay/helper.rb in activemerchant-1.39.0

- old
+ new

@@ -5,11 +5,11 @@ class Helper < ActiveMerchant::Billing::Integrations::Helper def initialize(order, account, options = {}) md5secret options.delete(:credential2) super - add_field('protocol', '6') + add_field('protocol', '7') add_field('msgtype', 'authorize') add_field('language', 'da') add_field('autocapture', 0) add_field('testmode', test? ? 1 : 0) add_field('ordernumber', format_order_number(order)) @@ -35,14 +35,30 @@ def format_order_number(number) number.to_s.gsub(/[^\w]/, '').rjust(4, "0")[0...20] end MD5_CHECK_FIELDS = [ - :protocol, :msgtype, :merchant, :language, :ordernumber, - :amount, :currency, :continueurl, :cancelurl, :callbackurl, - :autocapture, :cardtypelock, :description, :ipaddress, :testmode, - :deadline, :cardhash + :protocol, + :msgtype, + :merchant, + :language, + :ordernumber, + :amount, + :currency, + :continueurl, + :cancelurl, + :callbackurl, + :autocapture, + :autofee, + :cardtypelock, + :description, + :group, + :testmode, + :splitpayment, + :forcemobile, + :deadline, + :cardhash ] mapping :protocol, 'protocol' mapping :msgtype, 'msgtype' mapping :account, 'merchant' @@ -53,14 +69,20 @@ mapping :return_url, 'continueurl' mapping :cancel_return_url, 'cancelurl' mapping :notify_url, 'callbackurl' mapping :autocapture, 'autocapture' + mapping :autofee, 'autofee' mapping :cardtypelock, 'cardtypelock' - mapping :description, 'description' mapping :ipaddress, 'ipaddress' + + mapping :description, 'description' + mapping :group, 'group' mapping :testmode, 'testmode' + + mapping :splitpayment, 'splitpayment' + mapping :forcemobile, 'forcemobile' mapping :deadline, 'deadline' mapping :cardhash, 'cardhash' mapping :customer, '' mapping :billing_address, {}