GithubHelp home page GithubHelp logo

torys877 / magento-crypto-currency Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 319 KB

Extension allows adding any crypto currency and blockchain data to Magento 2

License: MIT License

PHP 91.24% JavaScript 8.76%

magento-crypto-currency's Introduction

Crypto Currency Magento 2 Extension

Extension allows adding any crypto currency and blockchain data to Magento 2.

Table of contents

Features

  • Add as many crypto currencies as you want.
  • Add as many tokens (ERC20) as you want (including stablecoint USDT/USDC etc).
  • Customize precision (decimal places), output format, symbol etc.
  • Preloaded with some top cryptocurencies like Ethereum (ETH), Polygon (Matic), USDT, USDC.

Installation

Install module:

composer require cryptom2/magento-crypto-currency:v1.0.0

And run

php bin/magento setup:upgrade

Configuration

Add New Currency

  • Go to Stores->Crypto->Custom Currencies
  • Click Add New Currency
  • Fill Data:
    • Is Cryptocurrency? - set if it is crypto
    • Is Token - set if it is token (yes - it will use ERC20 methods to send payment, no - it will use just blockchain transactions)
    • Currency Contract ABI - input ABI of token contract if it is ERC20

Magento 2 Crypto Currency

Add Blockchain Network

  • Go to Stores->Crypto->Blockchain Networks
  • Click Add New Blockchain
  • Fill Data:
    • Chain ID - chain id of blockchain network, mandatory
    • Blockchain Code - custom blockchain code (can be any)
    • Blockchain Name
    • Blockchain Explorer Url - Url of explorer where admin and customers can be find transaction details
    • Is Check in Block Explorer? - set if it is necessary to check transaction status asynchronously by cron in explorer (more reliably, then realtime checking after payment)
    • Blockchain Explorer API Url - api url in explorer
    • Blockchain Explorer API Key - your explorer api key

Magento 2 Crypto Currency

Add Crypto Currency Addresses

  • Go to Stores->Crypto->Currency Addresses
  • Click Add New Currency Address
  • Fill Data:
    • Blockchain Network - choose blockchain from previous step, in which cryptocurrency exists
    • Currency - choose currency from previous step
    • Merchant Address In Blockchain - fill with YOUR wallet address where you are going to receive payments
    • Currency Token Address In Blockchain - fill with crypto currency ERC20 address (if it is token, or leave empty if it is native currency)

Magento 2 Crypto Currency

Author

Ihor Oleksiienko

License

Extension is licensed under the MIT License - see the LICENSE file for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.