当前位置: 首页 > 工具软件 > ps2sdk > 使用案例 >

python3lde_支付宝Python版SDK

韩安顺
2023-12-01

支付宝

Python

SDK

作者

:

邓占国

# -*- coding:utf-8 -*-

#-----------------------------------

# alipay python sdk

#

版本

: Python 2.6, 2.7

#

第三方库

: requests, rsa

#

包含支付宝配置信息

,

业务流程处理

,

函数

# QQ:1454378241 divt

#-----------------------------------

RES_INFO = 9 #

异常

"""

配置信息调试时请替换为自己的支付宝信息

,

测试

key

是错的

,

修改时请注意格式

"""

RSA_ALIPAY_PUBLIC = """-----BEGIN PUBLIC KEY-----

MIGfMA0GCSqGSIb3DQEBAQUAA4GNA5234535fasfsadfasfdsafPdyPuBV64bfQNN1PjbCzkIM6qRd

KBoLPXmKKMiFYnkd6rAoprih3/PrQEB/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UB

VOrFXfFl75p6/B5KsiNG9zpgmLCUYuLkxpLQIDAQAB

-----END PUBLIC KEY-----"""

#

商户私钥

RSA_PRIVATE ="""-----BEGIN RSA PRIVATE KEY-----

MIICXAIBAAKBgQCslpBgJhEFGG54Dn9oTz4IVA4D2F4/mx+IinE783+N9g2QNWVX

yL4DgyDnGfpEtG+mh9wqR+AjFKLnAWwoOPZb0lDeHyrBviUuoj6SlrGEKYbx3Mc0

wCq3CJKKGR4ELxNMXgdbBJP0FK7K3qLqQRIqPeCkSrwUAhZL/6pPYu36zwIDAQAB

AoGBAIj32M6lhz5e/FTFVLHIqbdcVd8RWQLrriPjkyf8AA/+5Ra8eZgoVTxeVb9y

q17ZP/6OtdjMtetrewtewtetwetresOKn20RMgN5gTwFtx0LmplelxIKi9+sAuoz

CxzoejceqyI0tub3J29fw+klOh1UhMCxXnoOCwRRbuqeoWmZAkEA38LgSljePkYs

MSJmpgAobMiwHQsuh63KLR3/tb7Oqp6GaTr9wPwnAEYRoEs7s43laqUV1ZKOFz3P

5/8e9BzQYwJBAMV0PS2dEmO633576567fghdfhads2NsXxBVruy1vlyi4od7yox6

WqgpZOOBQ34wLFHzNhtFLY3umQCVTPaWGaUCQE29VdFeuK/oD1huvDz2FxVcUBt3

FA5dab1tC7cn+IM8mjQbI6gVsrMcpOkM2kwSg18excwyo50dg4r1jtp+3EMCQGRE

osyG9s+QNGt5Pkfasfasfdasfasd544560yU/hYMoPwr4K91cpPycUkWWy+5RshW

uSMf/gIVJ50kM/EESAECQGaTj1714Fe1uomYNClkTluZDPF06d6c7y78R3c7QhxA

kKlCsuU/zb5WcX3oI0TxUS5mVuGWMEWvq/zJHplDZR4=

-----END RSA PRIVATE KEY-----"""

RSA_PUBLIC = """-----BEGIN PUBLIC KEY-----

MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCslpBgJhEFGG54Dn9oTz4IVA4D

2F4/mx+IinE783+53455343435543dfgdfsaddfmh9wqR+AjFKLnAWwoOPZb0lDe

HyrBviUuoj6Slfsafdbx3Mc0wCq3CJKKGR4ELxNMXgdbBJP0FK7K3qLqQRIqPeCk

 类似资料: