[프론트 플러그인] PrinterAPI 의 printerReceipt() 문의
-
제품 : 프론트 플러그인
지난 결제 건의 영수증을 출력하는 기능 구현 중에 문의드립니다.
PrinterAPI 의 printerReceipt() 를 보면 파라미터로 paymentKey를 필수값으로 받고 있습니다.
orderInfo를 받고는 있지만 선택값이기 때문에 결제금액은 paymentKey 를 통해서 가져온다고 생각됩니다.
만약 내부적으로
Payment API 의 getPayment() 와 같은 루틴이라면
getPayment()의 캐시정책이 TTL 14일 / 최대 1000건이라고 되어 있는데...
혹시 PrinterAPI 에서도
캐시된 결제 건만 출력이 가능한 것인지 문의드립니다.
-
안녕하세요. 토스플레이스 개발자센터입니다.
두 API는 결제 정보를 가져오는 경로가 서로 다릅니다.
printReceipt 는 전달하신 paymentKey 로 토스플레이스 서버에서 결제 정보를 조회한 뒤 영수증을 출력합니다.
getPayment 는 결제한 단말기의 로컬 캐시를 조회합니다. TTL 14일, 최대 1,000건이라는 정책은 이쪽에만 적용됩니다.각 API의 파라미터는 아래 문서에서 확인하실 수 있습니다.
https://docs.tossplace.com/reference/plugin-sdk/front/printer.html
https://docs.tossplace.com/reference/plugin-sdk/front/payment.html감사합니다.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
등록 로그인