Skip to main content

Installation Instructions for SadadQAR Magento Extention

πŸ‘‰ DOWNLOAD SAMPLE CODE ZIP

Requirements​

  1. Have File Manager/FTP access to the hosting
  2. SSH access

Installation Steps​

  1. Login to FTP or File Manager and locate your Magento installation directory. In most cases, its under your public_html or www directory. It should look like below screenshot:
  2. magento
  3. Go to app directory and Upload sadadqar_payment_gateway.zip file there and unzip it in same directory(app directory).
  4. If using FTP, unzip the sadadqar_payment_gateway.zip to your local computer first and upload the unzipped folder (folder name is code) to app directory. If code folder already exists, it will just place new code files there.
  5. Now your app directory should look like image below:
  6. magento
  7. Check inside code folder. There should be a directory with name "Sadadqar".

SSH Steps​

  1. Now login to SSH using Putty or Web SSH and go to Magento installation folder.
  2. Write command and hit enter: "php bin/magento module:enable Sadadqar_Magento --clear-static-content" (without quotes)
  3. If you’ve entered above command correctly and at proper place (i.e. in Magento installation folder), extension is installed. See image below:
  4. magento
  5. Now run command: "php bin/magento setup:upgrade" (without quotes)

Admin Settings​

  1. After completing all steps above. You can now login to Magento admin and go to Stores > Configuration > Sales > Payment Methods.
  2. There you should be able to see SadadQAR method like image below:
  3. magento
  4. Specify your Sadad ID (or Merchant ID) in Merchant ID field and Enabled to Yes.
  5. Enter Secret Key generated from Sadad API settings. Please note that the Secret key is valid only for domain entered at the time of key generation. If your site domain is different than the generation domain, this payment method won’t work.
  6. Set New order Status to Suspected Fraud instead of processing.
  7. After that click Save config button.
  8. Go to System > Cache management and select all checkboxes. Then at top left, select Refresh from dropdown and click Submit. This will ensure that your payment method settings (Merchant ID, Secret key) are now applicable on your website.
  9. On frontend while checking out, you will see Pay with Sadad option in payment methods and whenever you click Pay with Sadad button, it will redirect you to Sadad.