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

upsdk-vue

v1.0.7

Published

一个云闪付小程序SDK,便于使用VUE安装开发。银联给的upsdk。

Downloads

14

Readme

upsdk-vue

云闪付小程序要引入的upsdk, 用npm引入包

安装方法

Using npm:

$ npm install upsdk-vue

Using bower:

$ bower install upsdk-vue

Using yarn:

$ yarn add upsdk-vue

用法示例

云闪付小程序前端 API 初始化

import upsdk from 'upsdk-vue'

upsdk.config({
    appId: '', // 必填,接入方的唯一标识
    timestamp: '', // 必填,生成签名的时间戳
    nonceStr: '', // 必填,生成签名的随机串
    signature: '', // 必填,签名因子包括 appId、frontToken、nonceStr、 timestamp、url
    debug: true // 开发阶段可打开此标记,云闪付APP会将调试信息toast出来
});

云闪付小程序前端 API 导航栏

import upsdk from 'upsdk-vue'

upsdk.setTitleStyle({
    // 可选,导航栏(含状态栏)背景色及透明度。16 进制,前 2 位(8F)透明度,后六位(FFFFFF)颜色
    navBackgroundColor:'0x8FFFFFFF',
    appletStyle: 'black', //可选,black-黑色主题,white-白色主题。
    backBtnVisible: '0', // 可选,左侧返回按钮是否显示。’0’不显示,’1’显示,不传或空则默认
});

云闪付小程序前端 API 支付

import upsdk from 'upsdk-vue'

upsdk.pay({
    tn: '支付流水号 Ticket Number.',
    success: function(){
        // 支付成功, 开发者执行后续操作。
    },
    fail: function(err){
        // 支付失败, err.msg 是失败原因描述, 比如 TN 号不合法, 或者用户取消了交易等等。
    }
});

总之引用之后按照文档直接使用就行了,目前没有发现存在什么问题

联系我

邮箱:[email protected]

unionpay 云闪付小程序开发包

银联云闪付小程序非官方开发包,这可能是第一个支持composer导入的云闪付小程序开发包,小程序后端相关接口与支付相关接口已全部更新完毕。

码云地址 https://gitee.com/leapy/unionpay
Github地址 https://github.com/ileapy/unionpay
文档地址 https://wiki.kuzuozhou.cn/

License

MIT