To use the Sadad plugins, the merchant account has to be qualified to use the API.
Please log in to merchant account and find the Client and Secret Keys under the profile page. If it's not showing, please contact [email protected] to enable it.
![pngkey.com-magento-logo-png-2467475.png 500](https://files.readme.io/70afab0-pngkey.com-magento-logo-png-2467475.png)
Sadad Magento module allows merchants to set up and accept payments using Sadad on the Magento e-commerce store.
Installation
- Install the Sadad Payment Magento2 module via sadad-payment/magento2-module composer.
composer require sadad-payment/magento2-module
- In the command line, run the below Magento commands to enable Sadad Gateway module.
php -f bin/magento module:enable --clear-static-content Sadad_Gateway
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
php bin/magento cache:flush
Admin Configuration
- Login into Magento admin panel.
- In the left Menu → Stores → Configuration section
- In Sales Section → Payment Methods → Sadad Payment
- Login to the Sadad account, In the left Menu → navigate to Profile → Update profile → get the Sadad Client ID and Secret.
- Then, use that information in the Magento Sadad Pay settings page.
Webhook endpoint
- Login to the Sadad account.
- In the left Menu → navigate to Profile → Update profile
- In Webhook URL, add the endpoint https://yourStoreDomain.com/sadad_gateway/payment/webhook/
- Replace [yourStoreDomain.com] with the actual Magento domain.