Skip to content

Commit 73a4e53

Browse files
committed
Ability to split payment into a subaccount
1 parent cf94c0d commit 73a4e53

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Paystack.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ public function makePaymentRequest( $data = null)
120120
"first_name" => request()->first_name,
121121
"last_name" => request()->last_name,
122122
"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,
123130
/*
124131
* to allow use of metadata on Paystack dashboard and a means to return additional data back to redirect url
125132
* form need an input field: <input type="hidden" name="metadata" value="{{ json_encode($array) }}" >

0 commit comments

Comments
 (0)