Code Monkey home page Code Monkey logo

commerce_btcpay's Introduction

Commerce BTCPay

This module provides a Drupal Commerce 2.x payment plugin for BTCPay Server. This allows you to accept cryptocurrencies without a 3rd party intermediary by becoming your own payment processor.

Visit the project page on Drupal.org

Demo store

A Drupal Commerce demo store connected with a (testnet) BTCPay Server where you can try the checkout (Bitcoin + Lightning Network) can be found here:
http://drupal.demo.btcpay.tech

Requirements

Installation and configuration

Short walkthrough screencast on installing and configuring the module: https://youtu.be/XBZwyC2v48s

Quick walkthrough steps

Generate pairing code on BTCPay server

  1. BTCPay server: create and configure a store
  2. in store settings go to "Access Tokens"
  3. click on [Create a new token]
  4. Label: enter some label (eg. my store)
  5. Public key: this needs to be left empty
  6. Facade: "merchant"
  7. click on [Request pairing]
  8. on next screen choose your configured store in** Pair to** select dropdown and click on [approve]
  9. note down the displayed 7-digit code at the top status message, e.g. "d7afaXr"
    (you will need that code below on gateway configuration, see below)

Commerce BTCPay: Installation + configuration

  1. install module: composer require drupal/commerce_btcpay
  2. enable the module: drush en commerce_btcpay -y
  3. make sure you have configured private file system (needed to store encrypted public+private key)
  4. Commerce BTCPay configuration (Commerce -> Configuration -> Payment -> Payment gateways):
  5. add payment method "BTCPay"
    • Mode: Test or Live (you can configure both individually)
    • Test/Live server host: enter your URL without https:// prefix e.g. btcpay.yourserver.com (note valid SSL certificate needed)
    • Test/Live Paring code: enter the 7-digit pairing code from BTCPay "Access tokens" page
    • Save
      You should see a message that the tokens were successfully created.

Status

This module is currently in alpha stage and under active development.
Releases will be made available through the project page on drupal.org https://drupal.org/project/commerce_btcpay

About BTCPay Server

Short excerpt from their project page:

BTCPay Server is an Open Source payment processor, written in C#, that conforms to the invoice API of Bitpay. This allows easy migration of your code base to your own, self-hosted payment processor.

This solution is for you if:

  • You are currently using Bitpay as a payment processor but are worried about their commitment to Bitcoin in the future
  • You want to be in control of your own funds Bitpay compliance team decided to reject your application
  • You want lower fees (we support Segwit)

To get a full overview check out their great documentation.

Supported cryptocurrencies

BTCPay supports a vast variety of cryptocurrencies:

  • BTC (Bitcoin)
  • LTC (Litecoin)
  • 2nd layer Lightning Network for instant micro-transactions (BTC + LTC)
  • some altcoins using full node integration
  • or most other major altcoins using Changelly for conversion

Compatible with BitPay API

BTCPay was created to be a alternative to 3rd party payment provider BitPay. Therefore BTCPay is invoice API compatible and you can use this payment plugin also with the official BitPay API and sites if you want. But the power of BTCPay is that you can become your own payment provider.

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.