unicodeveloper / laravel-paystack

:credit_card: :package: :moneybag: Laravel 6, 7, 8, 9, 10 and 11 Package for Paystack
https://paystack.co
MIT License
612 stars 314 forks source link

Charge using subaccount is transferring the money to main account #56

Open anasbakro opened 6 years ago

anasbakro commented 6 years ago

Hello, I'm trying to use split payment feature by adding the subaccount parameter as a request field but its not working, it is transferring money to main account.

xcobary commented 5 years ago

Locate the file Paystack.php and in the makePaymentRequest() function, you can add "subaccount" => request()->subaccount for subaccounts