def page_execute_form(params)
      params = prepare_params(params)

      html = %Q(<form id='alipaysubmit' name='alipaysubmit' action='#{@url}' 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>"
      html
    end
def page_execute_form(params)
      params = prepare_params(params)

      html = %Q(<form id='alipaysubmit' name='alipaysubmit' action='#{@url}' 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>"
      html
    end
Generate a form string that use to render in view and auto POST to
 Alipay server.

 Example:

   alipay_client.page_execute_form(
     method: 'alipay.trade.page.pay',
     biz_content: {
       out_trade_no: '20160401000000',
       product_code: 'FAST_INSTANT_TRADE_PAY',
       total_amount: '0.01',
       subject: 'test'
     }.to_json(ascii_only: true),
     timestamp: '2016-04-01 00:00:00'
   )
   # => '<form id='alipaysubmit' name='alipaysubmit' action=...'