.NET MVC Alipay (Prompt arrival)

.NET has not been engaged in a long time, and a friend have a site that need access Alipay function, re-docked a bit.

1, before development, the need for a business Alipay account login, access and configure key PID

The official document: https://docs.open.alipay.com/62/104743/

2, download the official server code

Official Download: https://docs.open.alipay.com/270/106291/

Here we must note, the official server code, there is no project file, you need to vs2013, open - site, load the entire file. Configuration pid and ras key, it can run up, the results were pretty good, payment and refund of functions have been.

3, the official is to come webform code into MVC is also very simple, as follows

Payment:

Notice:

Refund:

 

Guess you like

Origin www.cnblogs.com/jys509/p/11445492.html