import { useState } from 'react'; import { PATHS } from '@/shared/constants/paths'; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { IMAGE_ROOT } from '@/shared/constants/common'; import { useExtensionArsApplyMutation } from '@/entities/additional-service/api/use-extension-ars-apply-mutation'; import { HeaderType } from '@/entities/common/model/types'; import { useSetHeaderTitle, useSetHeaderType, useSetFooterMode, useSetOnBack } from '@/widgets/sub-layout/use-sub-layout'; export const ArsCardPaymentRequestPage = () => { const { navigate } = useNavigate(); const { mutateAsync: arsApply } = useExtensionArsApplyMutation(); useSetHeaderTitle('결제 신청'); useSetHeaderType(HeaderType.LeftArrow); useSetFooterMode(false); useSetOnBack(() => { navigate(PATHS.additionalService.arsCardPayment.list); }); const callArsCardPaymentRequest = () => { let arsApplyParams = { mid: 'string', moid: 'string', goodsName: 'string', amount: 0, instmntMonth: '00', buyerName: 'string', phoneNumber: 'string', email: 'string', arsPaymentMethod: 'SMS', }; arsApply(arsApplyParams).then((rs) => { navigate(PATHS.additionalService.arsCardPayment.requestSuccess); console.log(rs) }).catch(() => { }).finally(() => { }); }; const onClickToRequest = () => { callArsCardPaymentRequest(); }; return ( <>
가맹점 *
주문번호 *
상품명 *
금액 *
할부기간 *
구매자명 *
휴대폰 번호 *
이메일
결제 방식 *
); };