This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
description:

与支付宝接口调用方法类似。网银在线第三方支付接口,对网银在线接口进行了简单封装,简化其使用。
usage:

1.在页面获取到用户订单后,构造需要支付的金额(2位精度),生成订单号,后台生成ChinaBank
对象,调用create_pay_url函数,生成需要重定向给用户的url

2举例 :
kwargs={
"mid":"xxxxxx", #网银在线合作商户的id
"key":'xxxxxxxxxxx',#key
"oid":'xxxxxx',#你的业务订单编号(不超过32位,否则超出规定的参数长度不成功)
"amount":'0.01',#金额,2位精度
"redirect_url":'http://xxxx/',# 支付成功回调地址
"notify_url":'http://xxxxx/',#支付成功回调地址
}
cb=ChinaBank(**kwargs)
url=cb.create_pay_url()
return HttpResponseRedirect(url)

3.上面的代码中的几个参数都是必填项,默认了货币类型为人民币,默认了回调通知url为1个。
当然还有其他一些非必须的参数可以传递给create_pay_url或者在kwargs 中添加 。
4. 如需要请查看网银在线的官方文档。
5. 目前大多支付页面只支持ie浏览器。。。
大多还要安装浏览器控件,u盾驱动等 才能成功支付。
Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
chinabankpay-0.0.1.zip (3.5 kB) Copy SHA256 Checksum SHA256 Source May 26, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting