Skip to content

Commit 607823e

Browse files
committed
add: http 테스트 코드 추가
1 parent 14eb5d1 commit 607823e

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

http/http-client.env.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"local": {
3-
"commerce-api": "http://localhost:8080"
3+
"commerce-api": "http://localhost:8080",
4+
"pg-simulator": "http://localhost:8082"
45
}
56
}

http/pg-simulator/payments.http

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### 결제 요청
2+
POST {{pg-simulator}}/api/v1/payments
3+
X-USER-ID: 135135
4+
Content-Type: application/json
5+
6+
{
7+
"orderId": "1351039135",
8+
"cardType": "SAMSUNG",
9+
"cardNo": "1234-5678-9814-1451",
10+
"amount" : "5000",
11+
"callbackUrl": "http://localhost:8080/api/v1/examples/callback"
12+
}
13+
14+
### 결제 정보 확인
15+
GET {{pg-simulator}}/api/v1/payments/20250816:TR:9577c5
16+
X-USER-ID: 135135
17+
18+
### 주문에 엮인 결제 정보 조회
19+
GET {{pg-simulator}}/api/v1/payments?orderId=1351039135
20+
X-USER-ID: 135135

0 commit comments

Comments
 (0)