File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,21 @@ public function makePaymentRequest()
113
113
"plan " => request ()->plan ,
114
114
"first_name " => request ()->first_name ,
115
115
"last_name " => request ()->last_name ,
116
- "callback_url " => request ()->callback_url
116
+ "callback_url " => request ()->callback_url ,
117
+ /*
118
+ * to allow use of metadata on Paystack dashboard and a means to return additional data back to redirect url
119
+ * form need an input field: <input type="hidden" name="metadata" value="{{ json_encode($array) }}" >
120
+ *array must be set up as: $array = [ 'custom_fields' => [
121
+ * ['display_name' => "Cart Id", "variable_name" => "cart_id", "value" => "2"],
122
+ * ['display_name' => "Sex", "variable_name" => "sex", "value" => "female"],
123
+ * .
124
+ * .
125
+ * .
126
+ * ]
127
+ *
128
+ * ]
129
+ */
130
+ 'metadata ' => request ()->metadata
117
131
];
118
132
119
133
// Remove the fields which were not sent (value would be null)
You can’t perform that action at this time.
0 commit comments