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

fundmefy

v1.0.1

Published

A Node.js SDK enabling developers to easily integrate automatic payment functionalities using DevFundMe's API.

Downloads

2

Readme

devfundme-sdk or fundmefy

This is a NodeJS SDK based on the Devfundme's API. It allows people to easily integrate payment functionnalities in their apps. This SDK support up to 200 currencies and use STRIPE, MONCASH, NATCASH as payment gateway.

Installation

Run the command :

$ npm install fundmefy

Get in touch

To use this SDK, please visit https://devfundme.com/fr/pms/service to get your token.

Usage

Initialization

const sdk = new FundMeFy("YOUR TOKEN")

We have 4 methods that facilitate communication between your app and the Devfundme's API.

Generate Paylink

Example

sdk.generate({amount, returnUrl, note, payorName, payorEmail})
.then(response => {
    const { mainData, all } = response
})
.catch(error => (error))

Params must be an object; All those keys 👇 are required

  • amount (string or number)
  • returnUrl (string) : The url to redirect the user after the payment
  • note (string) : Payment's description
  • payorName (string)
  • payorEmail (string)

You can also change the currency, just add the key :

  • currency (string) : "USD" by default

Note that if the given currency isn't USD, the amount will be converted to USD using openexchangerates with real time rates.

Two objects (mainData & all) are returned in generate's method. mainData is a concise form of all. You can log them for more details.

Get all the links that you have generated

Example

sdk.getAll()
.then(response => console.log(response))
.catch(error => console.error(error))

Get a specific paylink informations by ID

Example

sdk.getLink(id)
.then(response => console.log(response))
.catch(error => console.error(error))

Get the status of a specific paylink by ID

Example

sdk.getStatus(id)
.then(response => console.log(response))
.catch(error => console.error(error))

Support

The project use a non Open Source package, so we're limited with the amount of request we can do in order to support multiple currencies. Contact me at : [[email protected]] if you use this in a big project in order to upgrade the SDK plan.

Credits

  • [Jean David Bruno][https://github.com/MrCocktail]
  • [Dieuyel Jean Jeudy][https://github.com/Jeudy37]