npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dot-pay

v1.0.6

Published

Crypto Payment Processor

Downloads

19

Readme

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