How to setup PayStack and Flutterwave Payment - ninacoder-info/music-engine-web-wiki GitHub Wiki
PayStack is a ThirdParty payment, so you have to configure it manually.
Register an account on paystack.com, create you app and get secret key (you only need secret key).
Open config/payment.php
Add this array at to the end of the file (in array)
'gateway' => [
'paystack' => [
'name' => 'PayStack',
'color' => '#fff',
'secret_key' => 'sk_test_a98b5265de9738a9d7db3928ba9dceb6fd4add01',
'purchaseLink' => 'frontend.paystack.purchase.authorization',
'subscriptionLink' => 'frontend.paystack.subscription.authorization',
'buttonColor' => '#03c3f7',
'buttonIcon' => '<svg width="24px" height="24px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><defs></defs><g clip-path="url(#clip0)"><path d="M22.32 2.663H1.306C.594 2.663 0 3.263 0 3.985v2.37c0 .74.594 1.324 1.307 1.324h21.012c.73 0 1.307-.602 1.324-1.323V4.002c0-.738-.594-1.34-1.323-1.34zm0 13.192H1.306a1.3 1.3 0 00-.924.388 1.33 1.33 0 00-.383.935v2.37c0 .74.594 1.323 1.307 1.323h21.012c.73 0 1.307-.584 1.324-1.322v-2.371c0-.739-.594-1.323-1.323-1.323zm-9.183 6.58H1.307c-.347 0-.68.139-.924.387a1.33 1.33 0 00-.383.935v2.37c0 .74.594 1.323 1.307 1.323H13.12c.73 0 1.307-.6 1.307-1.322v-2.371a1.29 1.29 0 00-1.29-1.323zM23.643 9.258H1.307c-.347 0-.68.14-.924.387a1.33 1.33 0 00-.383.936v2.37c0 .739.594 1.323 1.307 1.323h22.32c.73 0 1.306-.601 1.306-1.323v-2.37a1.301 1.301 0 00-1.29-1.323z" fill="white"></path></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h157v28H0z"></path></clipPath></defs></svg>',
]
]
Your file should look like this

Same for Flutterwave
'flutterwave' => [
'name' => 'FlutterWave',
'color' => '#f5a623',
'environment' => 'staging', //This can be staging or live.
'public_key' => 'FLWPUBK_TEST-8f3d2d97fd7e3719ddb4dcf493b84a6b-X',
'secret_key' => 'FLWSECK_TEST-1f4620f9e5aeaeeaf7662cbbeaa8da2b-X',
'encryption' => 'FLWSECK_TESTc0ce68f908ed',
'purchaseLink' => 'frontend.flutterwave.purchase.authorization',
'subscriptionLink' => 'frontend.flutterwave.subscription.authorization',
'buttonColor' => '#0f1c70',
'buttonIcon' => '<svg fill="none" height="24" viewBox="0 0 34 34" width="24" xmlns="http://www.w3.org/2000/svg" class="flw" data-v-7125cfaa=""> <path clip-rule="evenodd" d="M24.9077 0.266665C40.0134 -2 30.3457 10.8667 25.6462 14.4667C28.8687 16.9333 32.1584 20.4 33.5683 24.3333C36.1866 31.5333 29.7415 32.6 24.9077 30.8C19.6039 28.9333 14.9043 24.9333 11.8161 20.2667C10.9433 20.2667 10.0034 20.1333 9.13062 19.8667C10.8762 24.8 11.6147 29.8667 11.1447 34C11.1447 25.6667 7.18366 17.4 1.47706 10.5333C-0.537031 8.13333 1.5442 6.33333 3.35688 8.66667C4.57713 10.3565 5.69794 12.115 6.7137 13.9333C8.66066 7.13333 18.3283 1.2 24.9077 0.266665ZM22.7593 12.5333C25.7133 10.7333 34.7096 1.06667 26.3175 1.93333C21.4837 2.46667 15.6429 6.93333 13.2259 9.8C16.5828 9.4 20.0067 10.8667 22.7593 12.5333ZM13.1588 11.9333C15.4414 11.7333 17.9255 12.9333 19.8053 14.1333C17.9926 15 15.9785 15.5333 13.8973 15.6667C10.809 15.6667 10.2048 12.2 13.1588 11.9333ZM14.4344 20C17.1199 23 20.8124 25.9333 24.7734 27C27.056 27.6 29.6072 27.3333 28.6673 24.0667C27.7274 21.0667 25.3105 18.4 22.9607 16.4C22.2894 16.8667 21.5509 17.3333 20.8124 17.6667C18.7983 18.8 16.6499 19.6 14.4344 20Z" fill-rule="evenodd" fill="#f5a623"></path></svg>',
],