index.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // 说明:以下配置文件中xx只做演示,使用时请替换
  2. var configObj = {
  3. mobile: {
  4. // 支付剩余时间倒计时,单位min
  5. payTime: 3,
  6. // 支付完成返回的页面地址,需要加协议,http/https
  7. backHomeUrl: '',
  8. // 微信支付相关配置
  9. wxConfig: {
  10. // 微信appid
  11. appid: 'wxb87ea37680c6dc2e',
  12. },
  13. },
  14. pc: {
  15. // 支付剩余时间倒计时,单位min
  16. payTime: 3,
  17. // 支付完成返回的页面地址,需要加协议,http/https
  18. backHomeUrl: '',
  19. },
  20. // 汇付商户ID
  21. huifuId: '6666000122864432',
  22. // 您自己的产品ID
  23. productId: 'PAYUN',
  24. // 渠道商id
  25. sysId: '6666000122864432',
  26. // 测试环境h5是否开启调试模式
  27. isDebug: true,
  28. // 接口名称集合
  29. api: {
  30. // 下单
  31. createPay: 'xx4',
  32. // 查询下单
  33. queryPay: 'xx3',
  34. // 获取微信openId,
  35. wxAuth: '/member/auth/social-login',
  36. // 获取银联userId,
  37. unionpayAuth: 'xx2',
  38. },
  39. // 测试环境域名
  40. testEnvHost: '',
  41. // 测试API前缀:
  42. testBaseURL: 'https://saas.niusenyun.com/app-api',
  43. // 生产环境域名
  44. productionEnvHost: '',
  45. // 生产API前缀
  46. prodBaseURL: 'https://saas.niusenyun.com/app-api',
  47. // 下单成功标识生产API,必须调用此接口上传数据成功,才可获得对应的奖励
  48. prodUploadPayAPI: 'https://api.huifu.com/v2/trade/casherinsert',
  49. };