Home > Mobile >  C # h5 WeChat built-in browser pays to the built-in browser
C # h5 WeChat built-in browser pays to the built-in browser

Time:09-24

Pay WeChat H5 built-in browser has been resolved, now want to pay the built-in browser, how to solve the
 
Initiate payment & lt;/title> <br/><meta name="viewport" content="width=device - width, initial - scale=1.0, the maximum - scale=1"/& gt; <br/><meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt; <br/></head> <br/><body & gt; <br/><The form id="form1" runat="server" & gt; <br/><Div> <br/><The table & gt; <br/><tr> <br/><Td & gt; Merchant order number: & lt;/td> <br/><Td & gt; <Asp: TextBox ID="txtOrderSN" runat="server" Css & gt; </asp: TextBox> </td> <br/></tr> <br/><tr> <br/><Td & gt; (points) to the payment amount, & lt;/td> <br/><Td & gt; <Asp: TextBox ID="txtPrice" runat="server" Css & gt; </asp: TextBox> </td> <br/></tr> <br/><tr> <br/><Td & gt; Commodity description: & lt;/td> <br/><Td & gt; <Asp: TextBox ID="txtBody" runat="server" Css & gt; </asp: TextBox> </td> <br/></tr> <br/><br/><tr> <br/><Td & gt; Custom parameters: & lt;/td> <br/><Td & gt; <Asp: TextBox ID="txtOther" runat="server" Css & gt; </asp: TextBox> <br/><BR/& gt; Can't have any Chinese (repair) & lt;/td> <br/></tr> <br/><tr> <br/><Td & gt; Users OpenId: & lt;/td> <br/><Td & gt; <Asp: Label ID="lblOpenId runat=" server "Text"="" & gt; </asp: Label> </td> <br/></tr> <br/><br/><tr> <br/><Td & gt; & nbsp; </td> <br/><Td & gt; <br/><Asp: Button ID="BtnSave runat=" server "Text"="confirm payment" onclick="BtnSave_Click"/& gt; </td> <br/></tr> <br/></table> <br/></div> <br/></form> <br/></body> <br/></html> <br/></pre> <br/><pre> <br/>Protected void BtnSave_Click (object sender, EventArgs e) <br/>{<br/>//set payment data <br/>PayModel model=new PayModel (); <br/>Model. OrderSN=this. TxtOrderSN. Text; <br/>Model. TotalFee=int. Parse (this) txtPrice) Text); <br/>Model. The Body=this. TxtBody. Text; <br/>Model. The Attach=this. TxtOther. Text;//can't have a noon <br/>Model. The OpenId=this. LblOpenId. Text; <br/><br/>//jump to WeiPay. Aspx page, please set the function WeiPay. Aspx page address <br/>This. The Response. Redirect (model. The ToString ()); <br/>} <br/></pre> <br/>Payment screenshots: <br/><img SRC="https://img.codepudding.com/202009/100267240852521.jpg" Alt=""/> </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/Mobile/26568.html" target="_blank" style="color:#999">https//www.codepudding.com/Mobile/26568.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/Mobile/26567.html'>Qt5 QTextEdit how to set the paragraph different background color</a></div> <div class="detail-arr-right">Next:<a href='/Mobile/26569.html'>The android UI problem</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=WeChat+pay' target='_blank'>WeChat pay</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>