GithubHelp home page GithubHelp logo

pingpp-js's People

Contributors

afonio avatar dong11 avatar hophacker avatar ouzhenkun avatar rd avatar samurai00 avatar yulitao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pingpp-js's Issues

iOS 10 下无法支付

环境:

  • iOS 10
  • pingpp-js 2.2.18(使用 gulp 构建了一份不含 alipay_in_weixin 的版本)

暂时降级到了 2.2.1

a.error is not a function

pingpp.js:1 Uncaught TypeError: a.error is not a function
at Object.init (pingpp.js:1)
at PingppSDK.createPayment (pingpp.js:1)
at XMLHttpRequest.xhr.onreadystatechange (wap.html:62)

setUrlReturnCallback 设置后无效, 仍然会跳转到新页面

调用代码如下:

  handleClick = () => {
    pingpp.setUrlReturnCallback((err, url) => {
      console.log(url)
    })
    pingpp.createPayment(pingppObject, (result, err) => {
      // 可按需使用 alert 方法弹出 log
      console.log(result)
      console.log(err.msg)
      console.log(err.extra)
    })
  }

Channel wx_pub_qr is invalid是什么原因啊?

gulp build --channels="alipay_pc_direct wx_pub wx_pub_qr"
时提示
Channel wx_pub_qr is invalid. The channels you can use: alipay_pc_direct,alipay_qr,alipay_wap,bfb_wap,cb_alipay_pc_direct,cb_alipay_wap,cb_wx_pub,cmb_pc_qr,cmb_wallet,cp_b2b,fqlpay_qr,fqlpay_wap,isv_wap,jdpay_wap,paypal,qpay_pub,upacp_b2b,upacp_pc,upacp_wap,upmp_wap,wx_lite,wx_pub,wx_wap,yeepay_wap.

手机端微信调用支付宝网页支付,没有反应

paypal 渠道 setUrlReturnCallback 无效

// in channels/paypal.js
var utils = require('../utils');

module.exports = {
  handleCharge: function(charge) {
    var credential = charge.credential[charge.channel];
    utils.redirectTo(credential, ??);
  }
};

redirectTo 方法缺失 channel 参数

模拟付款返回401

确定模拟付款后,请求是有发出去的,但是返回401.
经过排查,是没有Authentication造成的。
同样的请求用postman加Authentication就正常执行,返回success字样。

看源代码中发模拟付款的部分,没有看到加Authentication的地方。
但印象中,以前用同一套代码是可以执行模拟付款的。

pingpp.js 版本 2.0.7

wx_pub_qr需要调用pingpp.createPayment吗?

微信扫码支付,从charge中拿到了二维码地址,所以不需要调用pingpp.createPayment?
但生成二维码并支付后,并没有支付成功或失败的callback
如果调用了pingpp.createPayment会直接报错channel module "wx_pub_qr" is undefined

react native支持吗?

在看你们官网上有说支持RN,不清楚还在维护没,我可能会先用RN开发,所以问下

紧急求助pingpp.js不支持ie8吗

pingpp.js不支持ie8吗,有什么办法解决吗,爆js错误:

网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
时间戳: Wed, 12 Oct 2016 05:00:17 UTC

消息: 'document.body' 为空或不是对象
行: 1
字符: 11017
代码: 0
URI: http://127.0.0.1:8080/yangbanjian/web/js/pingpp.js

怎么集成?

我刚开始弄这个东西,我们用React做,文档不是很详细,完全不知道怎么开始啊!

在微信中使用支付宝 H5 支付时,setUrlReturnCallback 无效

由于我们使用 react ,想通过 setUrlReturnCallback 在拿到支付 url 之后自己做引导页面(不想用 pay.htm)。可否加一个判断,在微信中如果进行支付宝 H5 支付,不直接跳转到 pay.htm,而是看看回调函数是否有设置,如果有就用开发者自定义的。

版本:npm 完整版 2.2.18
错误代码:

        pingpp.setUrlReturnCallback(function (err, url) {
          if (isInWechat) {
            browserHistory.push(`/payment-guide/?to=${btoa(url)}&uuid=${payment_uuid}`);

            return;
          }
          window.location.href = url;
        }, ['alipay_wap']);
        pingpp.createPayment(charge);

IE总是跳出来提示

提示信息:您是要打开还是保存来自cookie.pingxx.com的cookie_ping_com?这个提示每次刷新页面都会出现。
2017-02-24 9 04 54

Uncaught TypeError in main.js

line 43: typeof payment_elements.app.id === 'string')
Uncaught TypeError: Cannot read property 'id' of null
app is null~!!
why..

在微信浏览器中无法发起支付

我查了一下,是XMLHttpRequest没有定义, 可能是ajax同源策略造成的

request: function(url, method, requestData,
    successCallback, errorCallback, headers) {
    if (typeof XMLHttpRequest !== 'function') {
      alert('Function XMLHttpRequest is undefined.');
      return;
    }
    var xhr = new XMLHttpRequest();
    if (typeof xhr.timeout !== 'undefined') {
      xhr.timeout = 6000;
    }

Add a way to allow initialization when needed

Currently this package initialize automatically when app starts, it slows down the initial page loading time.
it would be great to allow initialize it only when Pingpp payment process starts.

使用wx_wap支付后,获取支付结果有延迟

app中加载网页使用wx_wap调起微信客户端支付。
支付成功后,返回成功的url链接。
但是此时查询pingpp的订单结果,却显示未支付,延迟几秒后查询,返回正确的支付结果。
这种情况会导致用户看到的信息和后台数据对不上,如何解决下?客户端直接调用客户端的sdk就没有这个问题。

从标准版转到广告版相关问题

由于业务原因,需要从标准版转到广告版,
旧项目中的客户端原本调用的代码如下
3

现在将标准版代码改成如下代码
4

但是支付成功后并没有出现广告,请问是哪个地方的代码出了问题。官网api文档更新了,旧版本的ping++接口和新版广告这边的升级问题没有想过描述,所以更新过程中不知道怎么弄了

调用ping++公众号支付

请问调用pingpp.createPayment之前,还需要先集成wx-jssdk并且调用wx.config配置微信sdk吗?

编译出错

编译时候出现这个错误:

/root/pingpp-js-master/node_modules/gulp-sourcemaps/node_modules/strip-bom/index.js:2
module.exports = x => {
^
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/root/pingpp-js-master/node_modules/gulp-sourcemaps/src/init/index.internals.js:7:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)

怎么解决呢?

2.1.10版bug

channel为alipay_pc_direct时,支付宝gateway页面缺少_input_charset参数,导致签名错误,报错ILLEGAL_SIGN。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.