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

@ppay/ipn

v2.0.21

Published

Package for integration with ppay

Downloads

57

Readme

Status Types:

0 (PENDING) – transaction has been registered within blockchain and included into a block, but is yet to receive a necessary amount of confirmations;

1 (PAID) – transaction has received 1 confirmation (for withdrawals) or 3 confirmations + payment to balance (for deposits);

2 (PAYMENT PROCESSING) – (used for timed payments made via Merchant page) transaction from user has not been registered yet;

3 (FAILURE) — can occur in such cases:

  1. insufficient funds in transaction made by user via Merchant page;
  2. timer on the Merchant page has ended with status(2) transaction;
  3. failed withdrawal attempt, transaction has not reached the blockchain;

4 (UNDERPAYMENT) – DEPRECATED

5 (QUEUED) – withdrawal transaction will be created according to the queue order (next possible status: (0) or(3)).

Retry Attempts & Interval

System has 24 attempts to send a transaction, with a 5 minute interval between the attempts.

Metadata Field

You can insert any info of choice into these fields, don't forget to encode it into base64.

Definitions & Parameters

Here, MO means Merchant Owner, User means Merchant owner's user

payINFO_FIELD — amount to be received by MO to the Dashboard, before forwarding to the merchant page (Example: price of goods in the cart). profit - amount to be accrued after fees; necessaryINFO_FIELD — amount of fees to be paid in order to receive pay accrual. received – summary of transactions received. In case of payments made via the Merchant page, one payment may include multiple transactions and this field will display their summary. In case of Pending transaction status, this field will display 0 or summary of confirmed transactions. receivedPending – summary of all transactions to the address registered by the system, not depending on amount of confirmations. receivedPay – final amount to be paid to the User, including all fees. When accruing funds to user's balance, check this field carefully, as it contains ultimate info about User's payment.

When using PermanentAddress functionality, it is necessary to use receivedPay field.

Code Example

{
                "kind" : "ReplenishPayment",
                "orderId" : "159779087103391464841531",
                "merchantName" : "example",
                "fee" : {
                    "system" : "0.005",
                    "merchant" : "0"
                },
                "status" : 0,
                "currency" : "ETH",
                "meta" : "yyjy1WZJZcI6IkxxLNENSIn0=",
                "to" : "0x22263e37273e7f9B58c48C015bDC3414DA9f4a85",
                "transactions" : [
                    {
                        "confirmations" : 1,
                        "hash" : "0xb7f238eEEe6212d41cb8da97db8bc69a87ab0ce83bce3e8e1c538c965a4a8fe0",
                        "amount" : "0.56905117",
                        "id" : "5f3c5a974ce687010db06e84"
                    }
                ],
                "amount" : {
                    "pay" : "0",
                    "profit" : "0",
                    "necessary" : "0",
                    "received" : "0",
                    "receivedPay" : "0",
                    "receivedPending" : "0.56905117"
                },
{
                "kind" : "WithdrawPayment",
                "orderId" : "157010161960852885627261",
                "merchantName" : "example",
                "fee" : {
                    "system" : "0.005"
                },
                "status" : 0,
                "currency" : "ETH",
                "meta" : "yyjy1WZJZcI6IkxxLNENSIn0=",
                "to" : "0x22263e37273e7f9B58c48C015bDC3414DA9f4a85",
                "transactions" : [
                    {
                        "confirmations" : 0,
                        "hash" : "0xe4b4090179db4523ad5034b9374165BBA75fa3558f71a7a4e82a9511871666e5",
                        "amount" : "0.0001",
                        "fee" : "0.000640395",
                        "id" : "5d95d973e4888c6dc87d04c0"
                    }
                ],
                "amount" : "0.0001"
            },