To activate WeChat Wallet through WeChat SDK jar package needs following parameters: appId, partnerId, prepayId, packageValue, timestamp, nonceStr, timestamp and Sign. The Sign needs the WeChat Pay’s sign creation logic to generate, for example:
Please note: IWXAP, PayReq are java class defined by WeChat SDK.
☑️Call-Back Message Data
Params Name
Description
Required
Notes
rsp_code
Response code
Y
Refer to Appendix B
rsp_msg
Response message
Y
merchant_id
Merchant ID
Y
Merchant ID
finish_time
Payment time
Y
YYYYMMDDHHMMSS (Beijing time)
order_id
Order ID
Y
amount
Transaction amount
Y
String, "100" for 1.00 dollar
md5
Message Digest
Y
☑️Call-Back Message Example(JSON Data):
☑️ Transaction Data (JSON format, after decrypted)
Params Name
Description
Required
Notes
finish_time
Payment time
Y
YYYYMMDDHHMMSS (Beijing time)
order_id
Order ID
Y
amount
Transaction amount
Y
String, "100" for 1.00 dollar
tip
Tip Amount
N
String, "100" for 1.00 dollar
bizpay_order_id
order id from Acquirer
Y
Returned by the Payment Service Provider (e.g. WeChat Pay, Alipay)
merchant_id
Merchant ID
Y
Provided by OTT Pay
☑️Data Example(JSON Data, after decrypted):
👉 Call back data中的 data是加密过的数据,参考appendix A进行解密处理。
Data in Call back data in encrypted, refer to appendix A for decryption.
👉Please reference our Android demo code for details.