lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/quickpay/quickpay_v10.rb in activemerchant-1.109.0

- old
+ new

@@ -22,15 +22,15 @@ end r.process { create_payment(money, options) } r.process { post = authorization_params(money, credit_card_or_reference, options) add_autocapture(post, false) - commit(synchronized_path("/payments/#{r.responses.last.params["id"]}/authorize"), post) + commit(synchronized_path("/payments/#{r.responses.last.params['id']}/authorize"), post) } r.process { post = capture_params(money, credit_card_or_reference, options) - commit(synchronized_path("/payments/#{r.responses.last.params["id"]}/capture"), post) + commit(synchronized_path("/payments/#{r.responses.last.params['id']}/capture"), post) } end end def authorize(money, credit_card_or_reference, options = {}) @@ -40,11 +40,11 @@ credit_card_or_reference = r.authorization end r.process { create_payment(money, options) } r.process { post = authorization_params(money, credit_card_or_reference, options) - commit(synchronized_path("/payments/#{r.responses.last.params["id"]}/authorize"), post) + commit(synchronized_path("/payments/#{r.responses.last.params['id']}/authorize"), post) } end end def void(identification, _options = {}) @@ -189,10 +189,10 @@ post[:invoice_address] = map_address(options[:billing_address]) if options[:billing_address] post[:shipping_address] = map_address(options[:shipping_address]) if options[:shipping_address] - [:metadata, :branding_id, :variables].each do |field| + %i[metadata branding_id variables].each do |field| post[field] = options[field] if options[field] end end def add_additional_params(action, post, options = {})