CardApprovalForm

public final class CardApprovalForm implements Transaction, CardForm


신용승인요청 폼


요청 예

CardApprovalForm(
   approvalAmt = 10000,
   taxAmt = 909,
   installment = 2,
   ptxId = "ptxId",
).also { submitForm(it) }

See also

Response

응답 데이터 예시

txType

CARD_APPROVAL

data
{
"acquirer": "비씨카드",
"acquirerCode": "AQ00",
"approvalAmt": 30000,
"approvalDateTime": "231114182806",
"approvalSerial": "14182806",
"canceled": false,
"installment": 0,
"issuer": "비씨카드",
"issuerCode": "IS50",
"merchantNumber": "773471647",
"ptxId": "card1234",
"resCode": "0000",
"resMessage": "결제 성공/결제 취소",
"salesSerial": "331800000032",
"taxAmt": 450,
"taxFreeAmt": 0,
"tipAmt": 0,
"trackDataForReceipt": "947950******0463"
}

Constructors

Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, Integer installment)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, String ptxId)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, Integer installment, String ptxId)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, Boolean isUnionPay)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, Boolean isUnionPay, String ptxId)
Link copied to clipboard
CardApprovalForm CardApprovalForm(Number approvalAmt, Number taxAmt, Number tipAmt, Number taxFreeAmt, Integer installment, Boolean isUnionPay, String ptxId)

Functions

Link copied to clipboard
Unit checkApprovalAmt(Number approvalAmt)
Link copied to clipboard
Unit checkApprovalDate(String yyMMdd)
Link copied to clipboard
Unit checkApprovalSerial(String approvalSerial)
Link copied to clipboard
Unit checkFrom(String yyyyMMdd)
Link copied to clipboard
Unit checkInstallment(Integer installment)
Link copied to clipboard
Unit checkPeriod(String from, String to)
Link copied to clipboard
Unit checkTaxFreeAmt(Number taxFreeAmt, Number approvalAmt)
Link copied to clipboard
Unit checkTo(String yyyyMMdd)
Link copied to clipboard
final Number getApprovalAmt()
Link copied to clipboard
final Integer getInstallment()
Link copied to clipboard
final Boolean getIsUnionPay()
Link copied to clipboard
final String getPtxId()
Link copied to clipboard
final Number getTaxAmt()
Link copied to clipboard
final Number getTaxFreeAmt()
Link copied to clipboard
final Number getTipAmt()
Link copied to clipboard
String getTrackData(String cardNo, String cardValidity)
Link copied to clipboard
String getUri()
Link copied to clipboard
String makeUri(String host, Pair<String, Object> pair)

Properties

Link copied to clipboard
private final Number approvalAmt

Required, 결제금액

Link copied to clipboard
private final Integer installment

Optional, 할부개월

Link copied to clipboard
private final Boolean isUnionPay

Optional, 은련카드 여부

Link copied to clipboard
private final String ptxId

Optional, 개별고유번호

Link copied to clipboard
private final Number taxAmt

Required, 부가세

Link copied to clipboard
private final Number taxFreeAmt

Optional, 비과세

Link copied to clipboard
private final Number tipAmt

Optional, 봉사료(팁)

Link copied to clipboard
private final String uri