File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,13 @@ public function makePaymentRequest( $data = null)
120
120
"first_name " => request ()->first_name ,
121
121
"last_name " => request ()->last_name ,
122
122
"callback_url " => request ()->callback_url ,
123
+ /*
124
+ Paystack allows for transactions to be split into a subaccount -
125
+ The following lines trap the subaccount ID - as well as the ammount to charge the subaccount (if overriden in the form)
126
+ both values need to be entered within hidden input fields
127
+ */
128
+ "subaccount " => request ()->subaccount ,
129
+ "transaction_charge " => request ()->transaction_charge ,
123
130
/*
124
131
* to allow use of metadata on Paystack dashboard and a means to return additional data back to redirect url
125
132
* form need an input field: <input type="hidden" name="metadata" value="{{ json_encode($array) }}" >
You can’t perform that action at this time.
0 commit comments