Metamask & Web3.js Ethereum Payment Extension for Magento 2 – Direct Crypto Payments Without Third-Party Gateways
In today’s evolving e-commerce landscape, cryptocurrency adoption is accelerating. Merchants and customers alike are seeking faster, decentralized, and more secure payment methods. The Metamask & Web3.js Ethereum Payment Extension for Magento 2 empowers online stores to accept direct Ethereum (ETH) payments—without relying on third-party gateways, middlemen, or external processing fees.
This powerful Magento 2 module enables seamless integration between your store and the Ethereum blockchain, allowing customers to pay directly from their Metamask wallets to your merchant wallet. Built with decentralization at its core, this extension aligns perfectly with the original philosophy of cryptocurrencies: peer-to-peer transactions that are trustless, transparent, and censorship-resistant.
👉 Discover how to integrate Ethereum payments seamlessly into your Magento store
Why This Extension Stands Out
Unlike traditional crypto payment modules that route transactions through centralized gateways, this extension eliminates intermediaries entirely. There's no need for KYC, no additional service fees beyond gas, and no risk of transaction manipulation by third parties.
The module uses web3.js and Etherscan API to validate transactions in real time, ensuring security and reliability while maintaining full decentralization.
Core Keywords:
- Ethereum payment for Magento 2
- Metamask integration
- Web3.js payment module
- Decentralized crypto payments
- Direct wallet-to-wallet transactions
- Etherscan API validation
- Gas-efficient ETH payments
- No third-party gateway
Key Features
✅ Display Prices in Ether (ETH)
Show product prices directly in ETH alongside fiat currencies. Customers can instantly see how much they’ll pay in cryptocurrency—improving transparency and trust.
✅ Pay with ETH at Checkout
After placing an order, customers are redirected to a secure payment page where they can connect their Metamask wallet and complete the transaction using ETH.
✅ Pay Later from Customer Account
If a customer doesn’t complete payment immediately, they can return to their account dashboard and pay later—ideal for abandoned carts or delayed confirmations.
✅ Real-Time Transaction Verification
Using web3.js, the system checks transaction status directly from the blockchain during checkout. Additional verification is done via Etherscan API, enhancing security against fraud.
✅ Automated Cron Job Monitoring
Set up cron jobs to automatically check pending transactions through Etherscan’s API. This ensures orders are updated even if the customer leaves the page before confirmation.
✅ Manual Admin Transaction Check
Store administrators can manually verify transaction statuses from the backend. Each transaction ID is clickable and links directly to its Etherscan page for full auditability.
✅ Support for Test Networks
Fully compatible with Ethereum testnets like Ropsten and Rinkeby. Ideal for development, testing, and staging environments before going live.
How It Works: A Seamless Blockchain Experience
- Customer selects ETH as payment method during checkout (only visible if ETH is enabled and selected).
- They click "Connect Wallet", authorizing their Metamask wallet.
- Once connected, the "Pay" button appears—clicking it initiates the transaction.
- The customer confirms the payment in their Metamask extension.
- The system uses web3.js to listen for blockchain confirmation.
- If enabled, it cross-checks the transaction on Etherscan using the provided API key.
- Upon successful validation, the order status updates in Magento to "Processing" or "Paid".
This entire flow happens securely within your store—no redirections, no third-party dashboards.
👉 Start accepting direct Ethereum payments today with full control over your funds
Installation Guide
To install this extension via Composer, follow these steps:
Step 1: Add Required Repositories
Update your composer.json file with the following repositories:
"repositories": {
"crypto-base": {
"type": "git",
"url": "[email protected]:torys877/crypto-base.git"
},
"crypto-currency-precision": {
"type": "git",
"url": "[email protected]:torys877/crypto-currency-precision.git"
},
"crypto-metamask-eth-payment": {
"type": "git",
"url": "[email protected]:torys877/crypto-metamask-eth-payment.git"
}
}Alternatively, run these commands in your terminal:
composer config repositories.crypto-base git [email protected]:torys877/crypto-base.git
composer config repositories.crypto-currency-precision git [email protected]:torys877/crypto-currency-precision.git
composer config repositories.crypto-metamask-eth-payment git [email protected]:torys877/crypto-metamask-eth-payment.gitStep 2: Install the Module
Run the following command:
composer require cryptom2/metamask-eth-payment:v1.0.0Step 3: Upgrade Magento Setup
Execute:
php bin/magento setup:upgradeClear cache if needed:
php bin/magento cache:cleanYour module is now installed and ready for configuration.
Configuration Settings
Live Mode Settings
- Enabled: Toggle the payment method on or off.
- Title: Customize how the payment option appears at checkout (e.g., “Pay with Ethereum”).
- Ether Network Version: Specify the network chain ID (e.g.,
1for Ethereum Mainnet). - Merchant Ether Address: Your public wallet address where payments will be received.
- Etherscan URL: Base URL for viewing transaction details (e.g.,
https://etherscan.io/tx/). - Check Transaction on Etherscan: Enable API-based verification for added security.
- Etherscan API URL: API endpoint for your network (e.g.,
https://api.etherscan.io/api). - Etherscan API Key: Obtain this free key from etherscan.io/apis.
🔐 Security Tip: Always enable Etherscan transaction checking to prevent JavaScript injection attacks during payment processing.
Test Mode
Use identical settings but configure for test networks:
- Network Version:
3(Ropsten),4(Rinkeby), etc. - Test Etherscan URLs and API keys specific to the testnet.
This allows safe testing without risking real funds.
Display ETH Currency
To show prices in ETH:
- Go to Stores > Configuration > Currency Setup.
- Add ETH to Allowed Currencies.
- Set exchange rates manually (auto-rate updates may come in future versions).
Frequently Asked Questions (FAQ)
Q: Can I use this extension without Metamask?
A: Currently, Metamask is required as it provides the web3 interface needed for wallet connection and signing transactions. However, future updates may support other EIP-1193-compatible wallets.
Q: Is my private key ever exposed to the store?
A: No. Your private key remains entirely within your Metamask wallet. The store only receives the signed transaction hash—never any sensitive data.
Q: How are failed or stuck transactions handled?
A: Transactions are monitored via cron jobs and Etherscan API. If a transaction fails or isn’t confirmed, the order remains pending until resolved manually or automatically.
Q: Can I accept other cryptocurrencies like USDT or ERC-20 tokens?
A: This version supports native ETH only. Support for ERC-20 tokens may be added in future releases.
Q: Does this work with headless Magento or PWA setups?
A: Yes! Since it relies on web3.js and standard Magento hooks, it integrates well with PWA Studio and headless architectures.
Q: What happens if a customer pays but the site doesn’t confirm?
A: The customer can return to their account and retry payment confirmation. Admins can also manually verify the transaction using the blockchain explorer link.
Final Thoughts
The Metamask Ethereum Payment Extension for Magento 2 is more than just a plugin—it’s a step toward true financial sovereignty in e-commerce. By cutting out intermediaries and leveraging blockchain technology directly, merchants gain full control over their payments while offering customers a fast, secure, and modern checkout experience.
Whether you're running a small online shop or a large digital marketplace, integrating native ETH payments enhances credibility, reduces fees, and appeals to tech-savvy users embracing decentralized finance.
👉 Unlock decentralized payments for your online store—get started now