kisvanSpec.inTranCode = "BP"; // 출력 구분자
kisvanSpec.inPrtData = printCBP2200Data(); // BYTE ARRAY
public byte[] printCBP2200Data() {
StringBuilder tmpPrtData = new StringBuilder();
tmpPrtData.append(PrintCode.AC).append(PrintCode.BS).append("신용카드 승인").append(PrintCode.BE).append(PrintCode.LF);
tmpPrtData.append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("카드종류 우리카드").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("할부 일시불").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("카드번호 1234-56**-****-****").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("거래일시 2023/06/21 16:15:28").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("-----------------------------------------------").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append(" No 품명 수량 금액").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append(" 1 상품1 1 1,000 원").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append(" 2 상품2 1 4 원").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("-----------------------------------------------").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("금액 913 원").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("부가세 91 원").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("합계 1,004 원").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("-----------------------------------------------").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("승인번호 12345678").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("매입사명 비씨카드").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("사업자번호 1112233333").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("대표자명 홍길동").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("가맹점명 KIS정보통신(주)").append(PrintCode.LF);
tmpPrtData.append(PrintCode.AL).append("주소 서울특별시 구로구 새말로 97, 23층").append(PrintCode.LF);
tmpPrtData.append(PrintCode.LF);
tmpPrtData.append(PrintCode.LF);
tmpPrtData.append(PrintCode.LF);
return PrintDataParser.parse(tmpPrtData.toString());
}
// 위는 예시일 뿐, 양식 내용은 POS업체에서 결제 응답에 대해 내려가는 필드를 활용하여 사용하시면 됩니다.