Skip to content

Commit 007c152

Browse files
committed
add: HTTP request samples for Payment API (v1) including payment and callback scenarios
1 parent 648fd71 commit 007c152

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

http/commerce-api/payment-v1.http

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
### 결제 요청
2+
POST {{commerce-api}}/api/v1/payments
3+
X-USER-ID: 1
4+
Content-Type: application/json
5+
6+
{
7+
"orderId": 12345,
8+
"cardType": "CREDIT",
9+
"cardNo": "1111-2222-3333-4444",
10+
"amount": 50000
11+
}
12+
13+
###
14+
15+
### 결제 콜백
16+
POST {{commerce-api}}/api/v1/payments/callback
17+
Content-Type: application/json
18+
19+
{
20+
"transactionKey": "tx_20251205_0001",
21+
"orderId": "12345",
22+
"status": "SUCCESS",
23+
"reason": null
24+
}
25+
26+
###

0 commit comments

Comments
 (0)