Download the PHP package cryptom2/metamask-eth-payment without Composer

On this page you can find all versions of the php package cryptom2/metamask-eth-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package metamask-eth-payment

CurrencyPrecision Magento 2 Extension

Metamask Ethereum payment method module for Magento 2

Table of contents

Description

Extension allows to receive direct payments from customer Ethereum blockchain wallet to merchant Ethereum wallet using Metamask in Ethereum cryptocurrency Ethers.

Idea

Using any gateways and third party services to make and receive payments breaks the philosophy of cryptocurrencies. If you use cryptocurrencies to pay you should be able to make it directly between wallets that no one can control, interrupt and change your transaction. But when this module was created there are only modules for Magento 2 from companies that are gateways between customer and merchant and handle the payment process, can control this process and payment processes in this case have no any differences from using bank account.

The main idea of this module is to allow you make and receive payments directly between wallets, without using any third party gateways and commission and pay only networks gas.

Features

1) Display prices in Ether currency 2) Pay by Ether from checkout after placing order 3) Pay from customer accound order view page (customer can pay on checkout or, if have any troubles, later from his account) 4) Check transaction status using web3js library 5) Check transaction status through etherscan.io API request 6) Check transactions by cron using etherscan.io API request 7) Check transaction manually from admin area transaction page

Installation

To install module you need to add repositories to your composer.json:

Composer installation

Or add repositories from console:

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

Install module:

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

And run

Settings

Checkout Payment Page

Live Settings

Test Mode

Settings are the same as for Live, but you need to use test networks (test network version, test network etherscan api url/key etc. On screen uses Ropsten network)

Display Eth Currency

To display ETH currency you also need to add it to allowed currencies and add currency rate in magento (automatically update rates will maybe included in future releases)

Screenshots

Display Prices

Display Prices

Payment Method On Checkout

Note: Payment method is displaying only if ETH currency selected 

Checkout payment method

Connect Wallet

Note: If wallet is not connected firstly customer sees 'Connect Wallet' button, then 'Pay' button

Connect Wallet

Pay by ETH

Pay By Eth

Processing Transaction

Note: After confirming transaction in Metamask wallet, customer should wait on the same page to magento confirm transaction
Magento sends request to metamask using Web3js and try to get confirmation message, after it, Magento
sends request to server and if Etherscan checking is enabled, transaction status also is checking on etherscan.

IMPORTANT: it is highly recommended to enable etherscan checking to prevent JS injection on processing page

Processing Transaction

Check transaction in admin area

Transaction ID is clickable and move you on etherscan page for this transaction

Check in admin area

Pay From Customer Account

If customer placed order but not paid it, he still can do it from his account. This button sends him to processing page and allows to do payment

Pay from customer account

Transaction Captured

When transaction is captured and approved in blockchain and magento, customer sees this message 

Pay from customer account

Author

Ihor Oleksiienko

License

Metamask Ethereum extension for Magento 2 is licensed under the MIT License - see the LICENSE file for details


All versions of metamask-eth-payment with dependencies

PHP Build Version
Package Version
Requires cryptom2/base Version >=1.0.1
cryptom2/currency-precision Version v1.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cryptom2/metamask-eth-payment contains the following files

Loading the files please wait ....