Git Product home page Git Product logo

python-unionpay's Introduction

Python3 Unionpay SDK - Python3 银联SDK

说明

本项目是银联 SDK 的 Python3 非官方实现,参考了银联论坛中 Python2 的实现,原代码可以从这里下载。

运行

Docker 方式

docker run -d -p 5000:5000 playniuniu/unionpay

Python3 方式

cd src
mkdir files
pip3 install requirements.txt
python3 debug.py

测试

由于官方没有单元测试,所以本项目只按照基本要求,做了一定量的测试,没有覆盖全部函数。测试方法如下:

cd src/
python3 -m unittest unionpay/*_test.py

Pycharm

如果使用 Pycharm 编辑器,请把根目录设置为 src/, 如果要在 Pycharm 中做单元测试,请使用 unionpay/acp_sdk_test.ini 替换 unionpay/acp_sdk.ini

python-unionpay's People

Contributors

playniuniu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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