결제수단 등록
Request
POST https://api.solapi.com/cash/v1/payment
결제수단을 등록합니다.
Authorization 인증 필요 [?]
계정 권한
회원 권한
계정 상태
회원 상태
계정 인증
cash:write
role-cash:write
ACTIVE
ACTIVE
O
2차 인증 필요
ARS 전화 인증
이메일 OTP
Request Structure
{
"cardNumber": "string",
"cvc": "string",
"expYear": "number",
"expMonth": "number",
"description": "string"
}
Body Params
Name
Type
Required
Description
cardNumber
string
O
카드 번호
cvc
string
O
CVC
expYear
number
O
유효기간(년)
expMonth
number
O
유효기간(월)
description
string
설명
Samples
createPayment.spec.js
Sample Request
{
"cardNumber": "test1",
"cvc": "123",
"expYear": 19,
"expMonth": "01"
}
Sample Response
{
"description": "[VISA] est1 01/19",
"expDate": "2019/01",
"paymentId": "4731372607893844001572284631920"
}
Sample Code
var request = require('request');
var options = {
headers: {
Authorization:
'HMAC-SHA256 apiKey=NCSAYU7YDBXYORXC, date=2019-07-01T00:41:48Z, salt=jqsba2jxjnrjor, signature=1779eac71a24cbeeadfa7263cb84b7ea0af1714f5c0270aa30ffd34600e363b4',
'Content-Type': 'application/json'
},
body: {
cardNumber: 'test1',
cvc: '123',
expYear: 19,
expMonth: '01'
},
method: 'POST',
json: true,
url: 'http://api.solapi.com/cash/v1/payment'
};
request(options, function(error, response, body) {
if (error) throw error;
console.log('result :', body);
});
문서 생성일 : 2019-10-28
Last updated
Was this helpful?