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

yifanepay

v1.0.0

Published

YifanEpay是为没有微信支付和支付宝支付的个人Node开发者提供的易支付,此库支持市面上主流的易支付系统对接

Downloads

32

Readme

文档语言

中文简体 | English

介绍

YifanEpay是为没有微信支付和支付宝支付的个人Node开发者提供的易支付,此库支持市面上主流的易支付系统对接。

特性

  • 🎗️ 支持市面上主流易支付对接
  • 🎗️ 轻量小巧

安装

使用 npm

npm install yifanepay

或者使用 yarn

yarn add yifanepay

使用

可以看 test 目录下的实例

简单例子,快速上手

// 引入yifanepay包
const yifanepay = require("yifanepay");

// 创建随机订单号
let ordernumber = yifanepay.order_number()

// 创建一个数组放所需要的参数(易支付会提供以下参数)
let data = {
    pid: "xxx", // 易支付PID
    money: "0.1", // 金额
    name: "商品名称", // 商品名称
    notify_url: "http://xxx.com/notify_url.php", // 异步通知地址
    out_trade_no: ordernumber,// 订单号
    return_url: "http://xxx.com/return_url.php",// 跳转通知地址
    sitename: "网站名称",
    type: "wxpay",// 支付方式: alipay:支付宝, wxpay:微信支付, qqpay:QQ钱包,tenpay:财付通
}

// 声明一个参数进行调用方法
let a = yifanepay.outcom("易支付密钥", "易支付平台地址", data) // data为上面的数组

// 打印a得到如下链接

http://xxx.com/submit.php?money=0.1&name=商品名称&notify_url=http://xxx.com/notify_url.php&out_trade_no=202211150843370&pid=xxx&return_url=http://xxx/return_url.php&sitename=网站名称&type=wxpay&sign=959a6e384855b97cbeeac85915a552ba&sign_type=MD5

更新日志

Vesion 1.0.0

1.发布首次版本

联系

电子邮件:[email protected]

QQ:188213092

提交BUG请发送邮箱(采取会回邮)

打赏

版权信息

MIT