Skip to content

Commit 915e7a3

Browse files
authored
add metadata to form
1 parent 2ddaf7d commit 915e7a3

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
@@ -226,6 +226,7 @@ A sample form will look like so:
226226
<input type="hidden" name="orderID" value="345">
227227
<input type="hidden" name="amount" value="800"> {{-- required in kobo --}}
228228
<input type="hidden" name="quantity" value="3">
229+
<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 --}}
229230
<input type="hidden" name="reference" value="{{ Paystack::genTranxRef() }}"> {{-- required --}}
230231
<input type="hidden" name="key" value="{{ config('paystack.secretKey') }}"> {{-- required --}}
231232
{{ csrf_field() }} {{-- works only when using laravel 5.1, 5.2 --}}

0 commit comments

Comments
 (0)