Giter Site home page Giter Site logo

cnryb / alipay.demo.pcpayment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stulzq/alipay.demo.pcpayment

0.0 2.0 0.0 3.41 MB

支付宝PC网站支付、扫码支付Demo,实现支付、支付同步回调、支付异步通知、订单查询、退款、退款查询、订单关闭、扫码支付功能。采用支付宝服务端SDK:Alipay.AopSdk.Core,使用ASP.NET Core MVC 2.0。

License: MIT License

C# 93.52% CSS 6.41% JavaScript 0.07%

alipay.demo.pcpayment's Introduction

Alipay.Demo.PCPayment

支付宝PC网站支付Demo,实现支付、支付同步回调、支付异步通知、订单查询、退款、退款查询、订单关闭功能。采用支付宝服务端SDK:Alipay.AopSdk.Core,使用ASP.NET Core MVC 2.0。

说明文档

功能演示

  • 2017-10-11新增当面付

  • 支付创建

  • 支付

  • 输入支付密码

  • 支付成功

  • 支付成功同步回调

  • 订单查询

  • 退款

  • 退款查询

  • 订单关闭

异步通知已经实现了的,但是由于没有公网ip和花生壳等,没有测试,以后测试了加图

配置

配置都在Config.cs里面

public class Config
{
	// 应用ID,您的APPID
	public static string AppId = "";

	// 支付宝网关
	public static string Gatewayurl = "https://openapi.alipaydev.com/gateway.do";

	// 商户私钥,您的原始格式RSA私钥
	public static string PrivateKey = "";

	// 支付宝公钥,查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
	public static string AlipayPublicKey = "";

	// 签名方式
	public static string SignType = "RSA2";

	// 编码格式
	public static string CharSet = "UTF-8";
}

公钥、私钥直接填写字符串

如果支付接口没用申请下来,可以使用支付宝沙箱来测试。

alipay.demo.pcpayment's People

Contributors

stulzq avatar

Watchers

任跃兵 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.