<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<form method="POST" action="{{ route('payStack') }}" accept-charset="UTF-8" class="form-horizontal" role="form">
@csrf
<div class="row" style="margin-bottom:40px;">
<div class="col-md-8 col-md-offset-2">
<p>
<div>
Lagos Eyo Print Tee Shirt
₦ 2,950
</div>
</p>
<input type="hidden" name="email" value="otemuyiwa@gmail.com"> {{-- required --}}
<input type="hidden" name="orderID" value="1">
<input type="hidden" name="amount" value="990"> {{-- required in kobo --}}
<input type="hidden" name="currency" value="ZAR">
<input type="hidden" name="metadata" value="{{ json_encode($array = ['key_name' => 'value',]) }}" > {{-- For other necessary things you want to add to your payload. it is optional though --}}
<input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
<p>
<button class="btn btn-success btn-lg btn-block" type="submit" value="Pay Now!">
<i class="fa fa-plus-circle fa-lg"></i> Pay Now!
</button>
</p>
</div>
</div>
</form>
</body>
</html>