I think your client has already asked this, and was given pointers towards existing payment gateway plugins which may help you. See https://moodle.org/mod/forum/discuss.php?d=385295
General developer forum
PayStack Enrolment: New Plugin to be Developed. Help
This discussion has been locked so you can no longer reply to it.