# User Termination (Optional)
WeChat background to notify the owner of the user to cancel/Termination.
# 1, request parameters
Parameter Name | type | Required | Remarks |
---|---|---|---|
appid | string | And | Mini Programs |
mch_id | string | And | Payment Merchant Number |
nuncio_st | string | And | Random string |
encrypted_data | string | And | Using AESCBCPKCS7PADDING |
iv | string | And | IV for decryption(base64) |
sign | string | And | 1Signature of field 5 |
encrypted_Data decryption data
Parameter Name | type | Required | Remarks |
---|---|---|---|
openid | string | And | User openid |
cardid | string | N | User identification of the owner |
# 2. Return parameters
Parameter Name | type | Required | Remarks |
---|---|---|---|
Errcode | int | And | 0 for success |
errmsg | string | N | Error message |
nuncio_st | string | And | Unaltered bring back |
# 3、 sample code
Request:
{"appid":"test","mch_id":"123456","nonce_str":"abcdefg","encrypted_data":"jfiwajeofjiefef","iv":"afweifwefe"}
encrypted_The data is decrypted as:
{"openid":"1234","cardid":"1234"}
Return:
{"errcode":0,"nonce_str":"abcdefg","encrypted_data":"jfiwajeofjiefef","iv":"afweifwefe"}