Integrates the MoneyHash JavaScript SDK into your Magento 2 checkout.
- Magento 2.4.x
- PHP 7.4 or newer
# from your Magento root
git clone https://github.com/MoneyHash/sdk-magento-module.git app/code/MoneyHash/SDKphp bin/magento module:enable MoneyHash_SDK
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
php bin/magento cache:flush- Log in to the Admin panel.
- Go to Stores → Configuration → Sales → Payment Methods.
- Expand MoneyHash Payment.
- Select Enabled Yes.
- Add MoneyHash API endpoint URL that you can get from our docs here.
- Add your account API key that is used for authenticating calls to MoneyHash endpoint.
- Add your public API key that is used in Web SDK integration.
- Save Config and flush caches.
NOTE: API key and Public API key will be found in MoneyHash dashboard under Integrations > Account API Keys.
- On checkout, the module loads the MoneyHash SDK from CDN.
- MoneyHash UI will be displayed to the customer handling the process of payment.
- Once the SDK completes, the Magento order is created automatically.
- SDK not loading?
- Ensure your CSP allows
https://cdn.jsdelivr.net. - Check browser console for 404/CSP errors.
- Ensure your CSP allows
php bin/magento module:disable MoneyHash_SDK
rm -rf app/code/MoneyHash/SDK
php bin/magento cache:cleanMIT (see LICENSE for details)