Coder Social home page Coder Social logo

alipay's Introduction

AliPay

支付宝即时到账demo,功能包含

  • 支付
  • 支付异步通知
  • 退款
  • 退款异步通知

业务流程

业务流程说明:

  1. 输入对应参数,调用接口生成html表单提交代码。

  2. 前台使用返回的html代码,生成新网页,改网页自动跳转到支付页面。

  3. 用户选择支付方式并支付订单。

  4. 支付宝后台处理交易。

  5. 交易处理完成后支付宝异步通知商户后台结果。

  6. 商户后台根据返回的支付结果进行其业务逻辑。

接口参数

参数 参数说明 样例
service 支付宝生成订单接口名称 create_direct_pay_by_user
partner 合作者身份ID 2088101011913539
seller_id 卖家支付宝用户号 2088002007018966
payment_type 支付类型,只支持取值为1(商品购买) 1
notify_url 服务器异步通知页面路径 http://o2o.cloume.com/client-web/api/ali/result
out_trade_no 商户网站唯一订单号 6843192280647118
subject 商品的标题/交易标题/订单标题/订单关键字等。 Ipad mini
total_fee 该笔订单的资金总额,单位为RMB-Yuan。取值范围为[0.01,100000000.00],精确到小数点后两位 100
body 商品描述 Ipad mini 16G 白色

更多参数请参考即时到账交易接口

信息配置

在AlipayConfig配置支付宝支付的一些信息

alipay's People

Contributors

szhgoldeneye 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.