lib/alipay/client.rb in alipay-0.15.1 vs lib/alipay/client.rb in alipay-0.15.2

- old
+ new

@@ -100,10 +100,10 @@ # ) # # => '<form id='alipaysubmit' name='alipaysubmit' action=...' def page_execute_form(params) params = prepare_params(params) - html = %Q(<form id='alipaysubmit' name='alipaysubmit' action='#{@url}' method='POST'>) + html = %Q(<form id='alipaysubmit' name='alipaysubmit' action='#{@url}?charset=#{@charset}' method='POST'>) params.each do |key, value| html << %Q(<input type='hidden' name='#{key}' value='#{value.gsub("'", "&apos;")}'/>) end html << "<input type='submit' value='ok' style='display:none'></form>" html << "<script>document.forms['alipaysubmit'].submit();</script>"