Account(계좌,결제수단) [ 길재현 ]

계좌 인증

/pg/accounts/auth/check-account

  1. 입력한 계좌가 실제 계좌인지 검증한다.

  2. 입력한 계좌의 실제 주인인지 확인한다. 맞다면 이름 계좌 주인 이름 반환

HTTP Request

POST /pg/accounts/auth/check-account HTTP/1.1
Content-Type: application/json
Content-Length: 65
Host: localhost:8080

{
  "bankCode" : "004",
  "accountNumber" : "42750204039102"
}

HTTP Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 38

{
  "bankHolderName" : "길재현"
}

Response Fields

Path Type Description

bankHolderName

String

계좌 소유자 이름

Auth(일회용 결제 토큰 발행) [ 길재현 ]

일회용 결제 토큰 발행

/pg/get-token

HTTP Request

POST /pg/get-token HTTP/1.1
Content-Type: application/json
Content-Length: 127
Host: localhost:8080

{
  "name" : "길재현",
  "apiKey" : "testAPIkey",
  "permission" : "payment",
  "price" : 10000,
  "clientIp" : null
}

HTTP Response

HTTP/1.1 200 OK
Authorization: Bearer testToken
Content-Type: text/plain;charset=UTF-8
Content-Length: 7

success

Pay(결제) [ 길재현 ]

결제 요청 처리

/pg/pay

HTTP Request

POST /pg/pay HTTP/1.1
Content-Type: application/json
Authorization: Bearer validToken
Content-Length: 84
Host: localhost:8080

{
  "bankCode" : "123456",
  "accountNumber" : "1234567890",
  "price" : 10000
}

HTTP Response

HTTP/1.1 200 OK
Content-Type: text/plain;charset=UTF-8
Content-Length: 7

success

결제 취소 처리

/pg/pay/cancel

HTTP Request

POST /pg/pay/cancel HTTP/1.1
Content-Type: application/json
Authorization: Bearer validToken
Content-Length: 84
Host: localhost:8080

{
  "bankCode" : "123456",
  "accountNumber" : "1234567890",
  "price" : 10000
}

HTTP Response

HTTP/1.1 200 OK
Content-Type: text/plain;charset=UTF-8
Content-Length: 7

success