PayPack · by Xiamen Shizhun Technology

Supported payment channels

PayPack routes one payment call onto three different rails: Alipay (CNY), WeChat Pay (CNY), and x402 / AP2 on-chain payments (USDC or ETH). This page documents each rail, what it is good for, and its current verification status.

At a glance

RailCurrencySettlementBest forVerification
AlipayCNYFiat, T+1 style merchant settlementUsers who pay with the Alipay appSandbox OK · Production verified
WeChat PayCNYFiat, merchant settlementUsers inside WeChat and mini programsBackend OK · Production verified
x402 / AP2USDC, ETHOn-chainMachine-to-machine API paymentsTestnet and mainnet verified

Alipay (CNY)

The agent creates a payment intent; PayPack calls the Alipay gateway with your app id and RSA2-signed request, and returns either a cashier URL (PC web) or the parameters a mobile frontend needs. The user completes the payment in the Alipay app.

PropertyValue
Signer classpaypack.signer.alipay.AlipaySigner
Sandbox switchsandbox=True (set False for production)
Web checkoutsigner.page_pay(out_trade_no, total_amount, subject, body)
Direct sendpay.send(to, amount, currency="CNY", subject)
Credentials neededapp id, app private key, Alipay public key

WeChat Pay (CNY)

WeChat Pay uses a separate commercial module, paypack_wechat, which requires a license key. The open-source package ships a template (paypack_wechat_run.example.py) so you can see the exact shape of the integration.

PropertyValue
Signer classpaypack_wechat.WechatSigner
Credentials neededmerchant id, certificate serial, API v3 key, private key, app id, notify URL
Frontend hand-offresult["prepay_params"] → wx.requestPayment()
CallbackServer-side notify endpoint; PayPack verifies and reconciles
Note: paypack_wechat is a commercial module. The license key is required by design, not by accident — it gates production WeChat Pay support.

x402 / AP2 on-chain (USDC / ETH)

For machine-to-machine payments, the merchant API answers HTTP 402 with a payment requirement. The agent parses it, pays, and retries the request with proof of payment — no human in the loop.

from paypack import AgentPay
import requests

pay = AgentPay(wallet_config={"private_key": "0x..."}, network="base-sepolia", spend_limit_daily=10.0)

response = requests.get("https://api.example.com/premium")
if response.status_code == 402:
    content = pay.auto_handle_402(response)

Supported networks

NetworkChain IDCurrencies
Base Sepolia (testnet)84532ETH, USDC
Base Mainnet8453ETH, USDC
Ethereum Mainnet1ETH, USDC
Polygon Mainnet137POL, USDC
Arbitrum Mainnet42161ETH, USDC

How to choose

  1. Your users are in China and pay by phone → Alipay or WeChat Pay (CNY).
  2. Your customer is another AI agent or an API → x402 (USDC / ETH).
  3. You want both → keep the rail explicit in the call; PayPack does not guess the rail for you in production.

Summary

PayPack is a developer tool for payment integration. It does not provide investment services, does not promise returns, and does not hold user funds.
Operated by Xiamen Shizhun Technology Co., Ltd. (Unified Social Credit Code: 91350211MA34XHGG5T) · Website: rhcjw.com · ICP filing: 闽ICP备2024041817号-2