Files
full/module/finance/wallet/test/wechat.http

83 lines
1.9 KiB
HTTP

POST http://127.0.0.1:12239/wallet.Wechat/JsapiPreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"auth_code": "wx_auth_code_abc",
"description": "",
"notify_url": "https://example.com/wx/notify",
"orderNo": "order_202309090001"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/AppPreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "",
"notify_url": "https://example.com/wx/notify"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/NativePreOrder
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"description": "",
"notify_url": "https://example.com/wx/notify"
}
###
POST http://127.0.0.1:12239/wallet.Wechat/Transfer
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"user_identification": "user_123",
"amount": 1000,
"fee": 0,
"description": "",
"transfer_name": ""
}
###
POST http://127.0.0.1:12239/wallet.Wechat/WxCallback
content-type: application/json
Authorization: {{BSM_TOKEN}}
{
"id": "EV-001",
"create_time": "2023-09-09T12:00:00Z",
"resource_type": "encrypt-resource",
"event_type": "TRANSACTION.SUCCESS",
"summary": "",
"resource": {
"original_type": "transaction",
"algorithm": "AEAD_AES_256_GCM",
"ciphertext": "...",
"associated_data": "xxx",
"nonce": "yyy"
},
"SignInfo": {
"transaction_id": "4200000000000000000",
"act_code": "A01",
"hall_code": "H01",
"hall_belong_mch_id": 100000000,
"card_id": "card_001",
"code": "SUCCESS",
"activity_id": "act_001"
}
}