lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.116.0

- old
+ new

@@ -72,18 +72,18 @@ def capture(money, authorization, _options = {}) post = { transaction: { id: authorization } } - post[:order] = {amount: amount(money).to_f} if money + post[:order] = { amount: amount(money).to_f } if money commit_transaction('capture', post) end def refund(money, authorization, options = {}) - post = {transaction: {id: authorization}} - post[:order] = {amount: amount(money).to_f} if money + post = { transaction: { id: authorization } } + post[:order] = { amount: amount(money).to_f } if money commit_transaction('refund', post) end def void(authorization, _options = {}) @@ -111,11 +111,11 @@ end response end def unstore(identification, options = {}) - post = { card: { token: identification }, user: { id: options[:user_id] }} + post = { card: { token: identification }, user: { id: options[:user_id] } } commit_card('delete', post) end def supports_scrubbing? true @@ -192,10 +192,10 @@ end begin parse(raw_response) rescue JSON::ParserError - {'status' => 'Internal server error'} + { 'status' => 'Internal server error' } end end def commit_transaction(action, parameters) response = commit_raw('transaction', action, parameters)