66 lines
2.0 KiB
PHP

<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>Danal 결제 데모</title>
</head>
<body style="font-family:system-ui;max-width:720px;margin:24px auto">
<h1>Danal 결제 데모(local)</h1>
<form method="post" action="{{ route('web.payments.danal.demo.submit') }}">
@csrf
<div>
<label>mem_no</label>
<input name="mem_no" value="1">
</div>
<div>
<label>amount</label>
<input name="amount" value="1004">
</div>
<div>
<label>method</label>
<select name="method">
<option value="card">card</option>
<option value="vact">vact</option>
<option value="phone">phone</option>
</select>
</div>
<div>
<label>card_kind</label>
<select name="card_kind">
<option value="general">general</option>
<option value="exchange">exchange</option>
</select>
</div>
<div>
<label>phone_mode</label>
<select name="phone_mode">
<option value="prod">prod</option>
<option value="dev">dev</option>
</select>
</div>
<button type="submit">주문 생성</button>
</form>
@if(session('oid'))
<hr>
<h3>생성된 OID: {{ session('oid') }}</h3>
<form method="post" action="{{ route('web.payments.danal.start') }}">
@csrf
<input type="hidden" name="oid" value="{{ session('oid') }}">
<input type="hidden" name="mem_no" value="{{ session('data.mem_no') }}">
<input type="hidden" name="method" value="{{ session('data.method') }}">
<input type="hidden" name="card_kind" value="{{ session('data.card_kind') }}">
<input type="hidden" name="phone_mode" value="{{ session('data.phone_mode') }}">
<input type="hidden" name="is_mobile" value="0">
<button type="submit">결제 시작(결제창 이동)</button>
</form>
@endif
@if($errors->any())
<pre>{{ $errors }}</pre>
@endif
</body>
</html>