2017 © Pedro Peláez
 

magento2-module decred-magento-plugin

image

decred/decred-magento-plugin

  • Tuesday, March 13, 2018
  • by decred
  • Repository
  • 7 Watchers
  • 3 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Magento Decred Payments

Magento module, integrates Decred autonomous currency into magento payments., (*1)

Installation

To install package extend your composer.json with new module:, (*2)

composer require decred/decred-magento-plugin

Enable new extension:, (*3)

php bin/magento module:enable Decred_Payments --clear-static-content

Then run next commands to setup new module:, (*4)

php bin/magento setup:upgrade 
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Read more about how to install magento extensions here, (*5)

Configurations

Decred payment method settings located at Stores -> Configurations -> Sales -> Payment Methods -> Decred Payments, (*6)

Enabled

Enables decred payment method. New payment method available on checkout., (*7)

Ensure to set "Master public key" before setting this config to "Yes"., (*8)

Master public key

In order to receive payments extension need to know your extended public key, from this key new payment addresses will be generated. Master public key derived from HD chain by path m/44'/42'/0'. Payment address will be derived by for branch 0 with and index is order id: m/44'/42'/0'/0/{incremental_order_id} see BIP44., (*9)

Example: dpubZH8DiRuE9MyB5rBGmoz3UuQSmTHWKGCQWDs9Jkx73FZuQr1QLTdU9uuwPRbEgEnMYriY9SUr4XshamuoXZC121HVqPXBSFvE57gG9pZd2Ts, (*10)

To get it from command line:, (*11)

dcrctl --wallet getmasterpubkey [default]

If you activate plugin for old store you should make sure your wallet software can find payment addresses., (*12)

In dcrwallet command you can increase addresses index gap with --addridxscanlen option., (*13)

So for old store this address index can be big as first Decred payment incremental_order_id., (*14)

dcrwallet --addridxscanlen {first_incremental_order_id}

Title

Title displayed on checkout payment method select. Default: Decred, (*15)

Confirmations to wait

How many confirmations should be on transaction to make it success. Default: 3, (*16)

Show refund address?

You can hide refund address input on checkout by setting "No". Default: "Yes", (*17)

Make refund address optional?

By changing setting to "No" you require your customers to fill in refund address. Default: "Yes", (*18)

The Versions

13/03 2018

dev-master

9999999-dev

  Sources   Download

ISC

The Requires

 

crypto bitcoin magento2 payment method decred dcr

13/03 2018

1.0.0

1.0.0.0

  Sources   Download

ISC

The Requires

 

crypto bitcoin magento2 payment method decred dcr