import { IMAGE_ROOT } from '@/shared/constants/common'; import { motion } from 'framer-motion'; import { FilterMotionDuration, FilterMotionVariants } from '../model/constant'; import { snackBar } from '@/shared/lib'; import { toPng } from 'html-to-image'; import { useTranslation } from 'react-i18next'; import '@/shared/ui/assets/css/style-tax-invoice.css'; import { useEffect } from 'react'; export interface TaxInoviceSampleProps { taxInvoiceOn: boolean; setTaxInvoiceOn: (taxInvoiceOn: boolean) => void; }; export const TaxInvoiceSample = ({ taxInvoiceOn, setTaxInvoiceOn }: TaxInoviceSampleProps) => { const { t } = useTranslation(); const downloadImage = () => { const section = document.getElementById('image-section') as HTMLElement; toPng(section).then((image) => { const link = document.createElement('a'); link.download = 'downloadImage.png'; link.href = image; link.click(); snackBar(t('common.imageRequested'), function(){ onClickToClose(); }); }); }; const onClickToClose = () => { setTaxInvoiceOn(false); }; useEffect(() => { if(!!taxInvoiceOn){ downloadImage(); } }, [taxInvoiceOn]); return ( <>
NICEPAY 닫기
이메일 발송
발송 인쇄
신용카드 매출전표
상점정보
상호
아이스 페이먼츠 주식회사
대표자
김광철
사업자등록번호
815-81-00527
전화번호
1661-7335
주소
서울 마포구 아현동 크레디트센터빌딩 217 11
URL
home.nicepay.co.kr
결제정보
총 결제금액
4,552,000원
금액
343,940원
부가세
343,940원
카드종류
신한
카드번호
489023******0070
구매자
홍*동
상품명
곰인형
거래유형
전취소
일반/할부
일시불
승인번호
14219606
거래일시
2025.09.22 | 11:32:29
취소일시
2025.09.22 | 23:10:16
결제대행사 정보
상호
나이스페이먼츠 주식회사
대표자명
김광철
사업자등록번호
815-81-00527
전화번호
1661-0808
주소
서울특별시 영등포구 문래로28길 25 (문래동3가)
신용카드 청구서에는 NICE로 표기됩니다.
* 부가세법 제 46조에 따라 신용카드 매출전표를 이용하여 매입세액 공제가 가능합니다.
(동법 제 33조 2항에 근거하여 신용카드 매출전표를 발행한 경우에는 세금계산서를 발급하지 아니합니다.)
); };