lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.78.0 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.79.0

- old
+ new

@@ -239,11 +239,11 @@ response.try(:[], "payment").try(:[], "transaction_status").try(:[], "description") end def authorization_from(action, parameters, response) if action == :store - response.try(:[], "token") + "|" + CARD_BRAND[parameters[:payment_type_code].to_sym] + "#{response.try(:[], "token")}|#{CARD_BRAND[parameters[:payment_type_code].to_sym]}" else response.try(:[], "payment").try(:[], "hash") end end @@ -252,11 +252,11 @@ return convert_to_url_form_encoded(parameters) if action == :refund "request_body=#{parameters.to_json}" end def url_for(hostname, action, parameters) - return hostname + URL_MAP[action] + "?#{convert_to_url_form_encoded(parameters)}" if requires_http_get(action) - hostname + URL_MAP[action] + return "#{hostname}#{URL_MAP[action]}?#{convert_to_url_form_encoded(parameters)}" if requires_http_get(action) + "#{hostname}#{URL_MAP[action]}" end def requires_http_get(action) return true if [:capture, :void].include?(action) false