Skip to content

Commit cf43075

Browse files
author
Prosper Otemuyiwa
authored
Merge pull request #29 from goodnesskay/master
add metadata to form
2 parents 2aebd96 + 915e7a3 commit cf43075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ A sample form will look like so:
258258
<input type="hidden" name="orderID" value="345">
259259
<input type="hidden" name="amount" value="800"> {{-- required in kobo --}}
260260
<input type="hidden" name="quantity" value="3">
261+
<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 --}}
261262
<input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
262263
<input type="hidden" name="key" value="{{ config('paystack.secretKey') }}"> {{-- required --}}
263264
{{ csrf_field() }} {{-- works only when using laravel 5.1, 5.2 --}}

0 commit comments

Comments
 (0)