123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- {
- "info": {
- "name": "VnPay Demo API",
- "description": "越南支付对接Demo接口测试集合",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "测试服务状态",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "http://localhost:8080/demo/test",
- "protocol": "http",
- "host": ["localhost"],
- "port": "8080",
- "path": ["demo", "test"]
- },
- "description": "检查服务是否正常运行"
- }
- },
- {
- "name": "API支付请求",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/x-www-form-urlencoded"
- }
- ],
- "body": {
- "mode": "urlencoded",
- "urlencoded": [
- {
- "key": "tradeType",
- "value": "SCAN_PAY",
- "description": "支付类型"
- },
- {
- "key": "version",
- "value": "1.0",
- "description": "版本号"
- },
- {
- "key": "channel",
- "value": "ALI_PAY",
- "description": "支付渠道"
- },
- {
- "key": "mchNo",
- "value": "M1234567890",
- "description": "商户号"
- },
- {
- "key": "mchOrderNo",
- "value": "ORDER{{$timestamp}}",
- "description": "商户订单号(自动生成时间戳)"
- },
- {
- "key": "body",
- "value": "测试商品",
- "description": "商品描述"
- },
- {
- "key": "amount",
- "value": "10000",
- "description": "金额(单位:分)"
- },
- {
- "key": "currency",
- "value": "VND",
- "description": "货币类型"
- },
- {
- "key": "timePaid",
- "value": "{{$timestamp}}",
- "description": "支付时间"
- },
- {
- "key": "remark",
- "value": "测试备注",
- "description": "备注信息"
- },
- {
- "key": "notifyUrl",
- "value": "http://localhost:8080/demo/notify/getPayInfo",
- "description": "异步通知地址"
- },
- {
- "key": "callbackUrl",
- "value": "http://localhost:8080/callback",
- "description": "同步回调地址"
- },
- {
- "key": "merchantName",
- "value": "测试商户",
- "description": "商户名称"
- },
- {
- "key": "goodsId",
- "value": "GOODS001",
- "description": "商品ID"
- },
- {
- "key": "goodsDesc",
- "value": "这是一个测试商品",
- "description": "商品描述"
- },
- {
- "key": "showUrl",
- "value": "http://localhost:8080/goods/001",
- "description": "商品展示URL"
- },
- {
- "key": "memberId",
- "value": "USER123456",
- "description": "会员ID"
- },
- {
- "key": "bankType",
- "value": "BANK_CARD",
- "description": "银行类型"
- },
- {
- "key": "cardType",
- "value": "DEBIT",
- "description": "卡类型"
- },
- {
- "key": "orderPeriod",
- "value": "30",
- "description": "订单过期时间(分钟)"
- },
- {
- "key": "paySecret",
- "value": "bf183091a6654c339b7b452a996c4ce5",
- "description": "支付密钥"
- }
- ]
- },
- "url": {
- "raw": "http://localhost:8080/demo/apiPay",
- "protocol": "http",
- "host": ["localhost"],
- "port": "8080",
- "path": ["demo", "apiPay"]
- },
- "description": "发起支付请求"
- }
- },
- {
- "name": "异步通知测试",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\n \"mchNo\": \"M1234567890\",\n \"mchOrderNo\": \"ORDER20240130001\",\n \"amount\": \"10000\",\n \"status\": \"1\",\n \"payTime\": \"20240130120500\",\n \"transactionId\": \"PAY20240130120500001\",\n \"sign\": \"需要根据实际参数计算\"\n}"
- },
- "url": {
- "raw": "http://localhost:8080/demo/notify/getPayInfo",
- "protocol": "http",
- "host": ["localhost"],
- "port": "8080",
- "path": ["demo", "notify", "getPayInfo"]
- },
- "description": "模拟支付平台发送的异步通知"
- }
- }
- ],
- "variable": [
- {
- "key": "baseUrl",
- "value": "http://localhost:8080"
- }
- ]
- }
|