0

I would like to install paystack payment plugin on my site, I have downloaded the zip file but the issue is that I don't see the familiar magento 2 directories after unzipping the package where I could just copy the files to the corresponding directories on my magento 2 root directory. Please how do I install the plugin in a scenario like this?

Screenshot of the unzipped package of the Plugin

Screenshot of my magento root directory

  • Check my answer and try #2 – Sohel Rana Feb 10 at 18:25
1

If you use this repo then you can install two ways.

  1. Using the composer that already described in the readme section.

  2. Create a directory under app/code which is Pstk/Paystack. So the location looks like : app/code/Pstk/Paystack and unzip here your code.

Now your folder looks like :

app/code/Pstk/Paystack/Block

app/code/Pstk/Paystack/Api

etc.

Now run setup upgrade command for installation this module

  • After creating the directory app/code/Pstk/Paystack/ and unzipping the package there what next? should I still run this command? composer require pstk/paystack-magento2-module – Austin Powers Feb 10 at 18:25
  • No need to run composer. you need to run setup:upgrade command for installation. – Sohel Rana Feb 10 at 18:28
  • ok thank you, let me give it a try – Austin Powers Feb 10 at 18:33
  • After creating the directory app/code/Pstk/Paystack/ and unzipping the package there I ran the command: php bin/magento setup:upgrade it returned the error: Could not open input file: bin/magento – Austin Powers Feb 10 at 18:51
  • I have gotten it to work, the command ran succesfully, so what next should I run this command? php bin/magento setup:di:compile – Austin Powers Feb 10 at 20:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.