lib/chargify2/direct.rb in chargify2-0.2.2 vs lib/chargify2/direct.rb in chargify2-0.2.4
- old
+ new
@@ -66,12 +66,10 @@
end
end
def encoded_data
hash = data? ? data : {}
- uri = Addressable::URI.new
- uri.query_values = hash
- uri.query
+ Rack::Utils.build_nested_query(hash)
end
def signature
message = "#{api_id}#{timestamp}#{nonce}#{encoded_data}"
Direct.signature(message, secret)