import axios from 'axios' import { useState } from 'react' import Kakaopay from '../components/Kakaopay' const Payment = ({ location }) => { const [ticketInfo, setTicketInfo] = useState({ ...location.state }) async function SendMail(e) { try { const response = await axios.post('/api/email/send',{ email:e.target.name }) console.log(response.data) } catch (error) { console.log(error) } } return (
{console.log(ticketInfo)}

결제하기

결제방법
영화포스터
{ticketInfo.title}
{ticketInfo.theater}
{ticketInfo.time}
{ticketInfo.selectedCinemaNum}관 {ticketInfo.selectedSeats}
청소년: {ticketInfo.teenager}명
성인: {ticketInfo.adult}명
경로우대: {ticketInfo.elderly}명
총 결제금액: {ticketInfo.teenager*7000 +ticketInfo.adult*8000+ticketInfo.elderly*6000}
) } export default Payment