python
from Alipay import AliPay
alipay = AliPay(
appid="APP_ID",
app_notify_url="http://example.com/alipay/notify",
app_private_key_path="/path/to/app_private_key.pem",
alipay_public_key_path="/path/to/alipay_public_key.pem",
)
python
order_string = alipay.api_alipay_trade_page_pay(
out_trade_no="201801010001",
total_amount=10,
return_url="http://example.com/alipay/success",
notify_url="http://example.com/alipay/notify"
)
python
if alipay.verify(data, signature):
pip install python-alipay-sdk