Metamask & Web3.js Ethereum Payment Extension for Magento 2 – Direct Crypto Payments Without Third-Party Gateways

·

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:

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

  1. Customer selects ETH as payment method during checkout (only visible if ETH is enabled and selected).
  2. They click "Connect Wallet", authorizing their Metamask wallet.
  3. Once connected, the "Pay" button appears—clicking it initiates the transaction.
  4. The customer confirms the payment in their Metamask extension.
  5. The system uses web3.js to listen for blockchain confirmation.
  6. If enabled, it cross-checks the transaction on Etherscan using the provided API key.
  7. 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.git

Step 2: Install the Module

Run the following command:

composer require cryptom2/metamask-eth-payment:v1.0.0

Step 3: Upgrade Magento Setup

Execute:

php bin/magento setup:upgrade

Clear cache if needed:

php bin/magento cache:clean

Your module is now installed and ready for configuration.


Configuration Settings

Live Mode Settings

🔐 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:

This allows safe testing without risking real funds.

Display ETH Currency

To show prices in ETH:

  1. Go to Stores > Configuration > Currency Setup.
  2. Add ETH to Allowed Currencies.
  3. 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