36 lines
1.8 KiB
PHP
36 lines
1.8 KiB
PHP
<html>
|
|
<head>
|
|
{!! load_google_fonts() !!}
|
|
{!! render_favicon_by_id(get_static_option('site_favicon')) !!}
|
|
<title> {{get_static_option('site_'.get_default_language().'_title')}}
|
|
- {{get_static_option('site_'.get_default_language().'_tag_line')}}</title>
|
|
</head>
|
|
<body>
|
|
<form method="POST" action="{{ $paystack_data['route'] }}" accept-charset="UTF-8" class="form-horizontal" role="form">
|
|
@csrf
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-6">
|
|
<input type="hidden" name="name" value="{{$paystack_data['name']}}">
|
|
<input type="hidden" name="email" value="{{$paystack_data['email']}}"> {{-- required --}}
|
|
<input type="hidden" name="order_id" value="{{$paystack_data['order_id']}}">
|
|
<input type="hidden" name="orderID" value="{{$paystack_data['order_id']}}">
|
|
<input type="hidden" name="amount" value="{{$paystack_data['price'] * 100}}"> {{-- required in kobo --}}
|
|
<input type="hidden" name="quantity" value="1">
|
|
<input type="hidden" name="currency" value="{{$paystack_data['currency']}}">
|
|
<input type="hidden" name="metadata" value="{{ json_encode($array = ['track' => $paystack_data['track'],'type' => $paystack_data['type']]) }}" > {{-- 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 id="submit_btn" type="submit" >{{__('Redirecting..')}}</button>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded',function (){
|
|
document.getElementById('submit_btn').click();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|