Git Product home page Git Product logo

unionpay's Introduction

非官方银联python SDK

主要使用Openssl和pyopenssl完成加解密和验签

Card info for test

| card | phone | password | CVN2 | expire | certid | name | | :------------ | -----:| -----:| -----:| -----:| -----:| -----:| -----:| | Debit:6216261000000000018 | 13552535506 | 123456 | | | 341126197709218366 | 全渠道 | | Credit6221558812340000 | 13552535506 | 123456 | 123 | 1711 | 341126197709218366 | 全渠道 |

unionpay's People

Contributors

jie avatar

Stargazers

Qaroev avatar  avatar  avatar yINs avatar brian avatar  avatar haowg avatar  avatar Stuart Leitch avatar  avatar  avatar gusibi avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar Qaroev avatar

unionpay's Issues

验签报如下错误

Traceback (most recent call last):
File "sdk_unionpay_client.py", line 566, in
main()
File "sdk_unionpay_client.py", line 496, in main
UnionpayClient(config).pay(25, orderid)
File "sdk_unionpay_client.py", line 197, in pay
return self.send_packet(self.config.app_trans_url, data)
File "sdk_unionpay_client.py", line 155, in send_packet
self.signer.validate(data)
File "/Users/fuzhichang/svn/api/pay/sdk_unionpay_signer.py", line 170, in validate
crypto.verify(self.X509, signature, digest, self.digest_method)
OpenSSL.crypto.Error: [('rsa routines', 'RSA_padding_check_PKCS1_type_1', 'block type is not 01'), ('rsa routines', 'RSA_EAY_PUBLIC_DECRYPT', 'padding check failed')]

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.