1.0.6 • Published 1 year ago

dot-pay v1.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Project Name

DotPay

Project Description

DotPay is a payment processor for digital currencies, similar to payment processors, gateways, and bank credit cards. DotPay enables you to accept digital payments and receive fiat currency immediately in exchange. Whether you’re a merchant, trader, developer, or someone who is futuristic about blockchain technology and looking to integrate cryptocurrency payments into your business - everyone can benefit from the DotPay payment processor. It's your virtuous gateway to cryptocurrency payments. Register today and enjoy the benefits:

Features

  • Cryptocurrency payment transfers in no time.
  • Decentralized, Transparent, and Scalable
  • Quick Smart Contracts execution on Binance Smart Chain
  • Merchant Account Management
  • Transaction Fee Management with bare minimum crypto transfers
  • Extra Benefits for DCN (DotCoin) Holders
  • Easy setup & payment integration for all kinds of businesses

Prerequisites

  • This project requires NodeJS (version 11 or later) and NPM.
  • Node and NPM are easy to install.
  • To make sure you have them available on your machine, try running the following command.
  • The current version of DotPay requires below objects versioning

    • "react-scripts": "4.0.3",

Getting Started

  • These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
  • See deployment for notes on how to deploy the project on a live system. We have presented the installation process stepwise for the same below. Kindly follow the same

Installation

Install my-project with npm

 $ npm install dot-pay
 
  cd my-project

Or if you prefer using Yarn:

yarn add dot-pay

Usage/Examples

You need to pass below data sets in Component:

import WalletConnect from "dot-pay";

function App() {
  return;
  <WalletConnect
    amount={`10000000000000000000000`}
    merchantContractAddress={"0x000000000000000000000000"}
    billingLabel={"buisnessName"}
    isBNB={false}
    tokenAddress={`0x0000000000000000000000000000`}
    DotBankAddress={`0x14D231D3b8faB41091848DD4342E7c603C571acC`}
    Events={{
      onSuccess :  function (transaction){
      alert(`Success with ${transaction}`);},
      onFailure :  function (transaction){
      alert(`Failure with ${transaction}`);}   
       }} 
  />;
}
  • Events Props are used to handle success and failure events of the transactions of DotPay Payment Processor. You can customise these events by customising the function body according to your application.

Roadmap

  • Connect Your Wallet using Metamask. When the Payment card is on the screen.
  • Now you need to Approve Your Payment by clicking on the “Approve Button”
  • Once the Payment is approved now click on the “Pay Button” for the payment completion.
  • You will get a pop-up once the payment is completed.

Authors

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago