1.0.1 • Published 9 months ago
yisufupay v1.0.1
项目文档
本文档针对于使用重庆浪寒云科技有限公司
产品易速付
聚合支付接口文档的客户,方便各位商家快速接入我司聚合支付接口。系统支持银联、支付宝、微信端开发.
- 注册账户完成实名认证
- 提交资料等待审核成功完成相关商户号认证
- 在对接群索要测试环境资料或直接调用生产环境
- 如需其他语言sdk,php、java等请查看对接文档
- 文档地址:点击跳转.
使用示例
const YisufuPay = require('yisufupay');
const config = {
open_userid: '商户编号/由我司分配的唯一用户编号(代理通用)',
rsa_rkey: '商户私钥',
sign_type: 'RSA2',
open_key: 'MD5 / SHA1 密钥',
rsa_public_key: '平台公钥',
};
const yisufuPay = new YisufuPay(config);
const userParams = {
channel_type: '支付方式编码',
total_fee: '金额/两位小数点',
pay_name: '商品名称(上送三方渠道)',
pay_body: '商品详细名称(保留我司系统)',
sub_mch_id: '子商户号',
notify_url: 'https://yourdomain.com/api/index/notify/',
out_trade_no: '商户订单号',
user_ip: '127.0.0.1/用户ip',
server_url: '商家网站',
};
yisufuPay.testPay(userParams)
.then((response) => console.log(response))
.catch(console.error);