Skip to content

Commit 74b1b01

Browse files
docs(readme): Update Readme
1 parent f70cad7 commit 74b1b01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ A sample form will look like so:
220220
<input type="hidden" name="quantity" value="3">
221221
<input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
222222
<input type="hidden" name="key" value="{{ config('paystack.secretKey') }}"> {{-- required --}}
223-
{{ csrf_field() }}
223+
{{ csrf_field() }} {{-- works only when using laravel 5.1, 5.2 --}}
224+
225+
<input type="hidden" name="_token" value="{{ csrf_token() }}"> {{-- employ this in place of csrf_field only in laravel 5.0 --}}
226+
224227

225228
<p>
226229
<button class="btn btn-success btn-lg btn-block" type="submit" value="Pay Now!">

0 commit comments

Comments
 (0)