Giter Site home page Giter Site logo

wc-burst's Introduction

WooCommerce (WordPress) BURST payments - wc-burst

GPLv3

There are many alternatives for cryptocurrency payments these days. However, the way they are implemented hurt many important principles: you need to create an account, manage API keys, they hold your funds, etc. Actually, most systems are more alike exchanges or classical credit card payment companies than anything else.

This project consists in a simple and powerful checkout solution for WooCommerce to receive in BURST with zero additional fees. No registration is required, you just need a Burst wallet address. No charge back, blockchain operations are irreversible and immutable. There is also an option for instant payments, recommended for small payments (e.g. a cup of coffee) with a small risk (accepting unconfirmed transactions).

WooCommerce claims to have more than 70 million downloads and to power over 28% of all online stores. It is probably one of the most used e-commerce platforms.

In the video below this WooCommerce BURST payment system is explained in more details, including how to use it as well as how to configure it.

Demo video

Payment values are converted from your configured FIAT currency to BURST using Coingecko API. Buyers should transfer BURST directly to your Burst address: your wallet, your funds. There is no third party holding your funds.

Different payment options are shown to the buyer (QR code, link, or address to transfer BURST) in the checkout page. You can configure the plugin to accept instant payments (accepting unconfirmed transactions). The number of confirmations (blocks) to accept general payments is also configurable.

The system works as follows. When a buyer select to pay in BURST, the order is set as on-hold and the user is asked to transfer a given BURST amount to the store address. A background service is scheduled to check for these on-hold payments every 30 seconds. If the payment is found on Burst blockchain (and has already the number of confirmations) the order is set as paid. Unpaid orders are cancelled after a specified number of minutes, also by the same background service.

FIAT Currencies supported

The limitation is actually the Coingecko API. Currently the following currencies are supported: 'USD', 'AED', 'ARS', 'AUD', 'BDT', 'BHD', 'BMD', 'BRL', 'CAD', 'CHF','CLP', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'IDR', 'ILS', 'INR', 'JPY', 'KRW', 'KWD', 'LKR', 'MMK', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SAR', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'UAH', 'VEF', 'VND', 'ZAR', 'XDR', 'XAG', 'XAU'

Recalling that this plugin converts the order total amount from your FIAT currency to BURST. Then the buyer transfer to your Burst wallet this BURST amount.

Installation

Download (or clone) this repository. Then move the contents to your WordPress plugins folder wp-content/plugins. Finally, enable the plugin and configure the parameters using your WordPress admin page.

Requirements

Tested with WordPress 5.5.2 and WooCommerce 3.6.5.

License

This code is licensed under GPLv3. This project also includes code from the PHP QR Code library.

Author

jjos

Donation address: BURST-JJQS-MMA4-GHB4-4ZNZU

wc-burst's People

Contributors

jjos2372 avatar

Watchers

James Cloos avatar

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.