Development (4) payment 3.7C,
1. Download Sample Code
: Http://dldx.csdn.net/fd.php? I = 730282530419400 & s = f205228286602140c31c30095f3d6f24
Do not download the official sample code.
2. Extract
Open the WeiPayDemo project under the code directory. The project code is based on the old version of VS, which is converted when opened in VS013.
3. Open PayConfig. cs and modify the following parameters:
Public static string MchId = "2222831601"; // modify it to your business account public static string AppId = "wx11f796122a4333a4 "; // modify the AppIdpublic static string AppSecret = "555f4555cee55551439555bd7990555"; // your AppSecretpublic static string AppKey = "secret "; // your payment API key public static string SendUrl = "http://xxx.my3w.com/Send.aspx"; // initiate the payment page public static string PayUrl = "http://xxx.my3w.com/WeiPay.aspx "; // public static string yyurl = "http://xxx.my3w.com/Notify.aspx"; // notification url page
4. Modify the test authorization directory and authorization callback page domain name on the public platform background
In this example, http://xxx.my3#com/and xxx.my3#com.
5. Create a default. aspx page:
<% @ Page Language = "C #" AutoEventWireup = "true" CodeBehind = "Default. aspx. cs "Inherits =" WxPayAPI. _ Default "%>
There is only one link in it, which is transferred to the payment page send. aspx.
6. Use the release function of VS to publish the code to the server. You can publish data using FTP.
7. Test Use Firefox to open ghost.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.