WeChat development (4) WeChat payment 3.7C,

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.