Giter Site home page Giter Site logo

securepay's Introduction

SecurePay

UPOP银联国际SecurePay(商户接入)

  • 本项目在银联demo(SecurePay 5.1 SDK for Merchant Jan 2019)的基础上,进行开发
  • 需要先在网站上注册开发者账号,才能下载demo并看到测试数据
  • 暂时只有消费接口(purchase),其他接口也都按照demo进行改写即可

API参考

参考银联国际 SecurePay api-interface

项目结构

  • 项目采用springboot框架,maven作为项目管理工具
  • lib文件夹下是银联的jar包,需要将其打包,才能在pom.xml中引用依赖
  • 后续银联可能会升级bcprov-jdk.jar包版本,请确认使用银联官方最新版本
  • logs存放输出日志
  • 数据库建表脚本:src/main/resources/sunmange.sql
  • maven打包时没有采用springboot默认的打包方式,而是将jar包分离到/target/lib文件夹下,须与打包生成的unionpay-*.jar同时上传至服务器
  • 使用拦截器做了IP白名单,在数据库表中进行配置

交易流程(以消费交易为例)

  1. 商户请求银联消费接口,页面重定向至银联支付页面
  2. 用户在支付页面填写相关信息,并确认支付
  3. 用户等待银联返回交易结果,然后跳转回商户页面
  4. 用户点击跳转商户页面时,银联会请求商户的fronUrl,并异步请求backUrl
  5. 交易状态以backUrl为准
  6. 收到frontUrl时,重定向至商户订单界面,可以直接展示订单信息,也可以等待后台收到backUrl

其他的接口资料 请提Issue

securepay's People

Contributors

asterism21749 avatar

Watchers

James Cloos 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.