Giter Site home page Giter Site logo

Comments (15)

likunNet avatar likunNet commented on July 27, 2024

使用其他cordova插件是正常的,支付的js对象找不到

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

@charleyw ,能帮我解答下这个问题吗?

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

你用的是cordova 还是ionic,版本能说一下吗?

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

用的ionic,
cordova 6.3.0
ionic 1.7.16
我的qq 284528084

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

@charleyw ,能加Q聊一下吗?

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

上班时间上不了QQ,不好意思。

Ionic好像是把这个注册到另一个namespace下面的。
你试一下:

window.plugins.alipay

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

还是不行,我试了几个对象都不行。
windows.aplipay || window.cordova.aplipay || window.plugins.aplipay
这3个对象取出来都是个空对象

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

等一会我试一下。

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

我刚才试了一下。貌似是ok的。你是不是没有安装成功啊。
不过我的是ionic 2.0

我用safari连上去看了,可以在console访问到,用alipay或者window.alipay都可以。

你卸载了重装一下试试看。

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

我测试了,errorResults直接返回的空对象,看不到失败的原因,也拉不起支付宝APP,IOS的,读取密钥会是个空字符串,但密钥已经写入了文件

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

我重新装了几次,确实找到了alipay对象,但是调用直接进入error,且看不到错误信息。无法定位原因

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

@charleyw ,errorRelust信息返回空的是因为什么原因?

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

iOS的话尝试导入到xcode里面运行一下,控制台应该能看到错误。Android的话导入到android studio,看看控制台的报错信息。

一般来说,报错的话基本都是配置的问题。二最容易出错的是那个privatekey,注意格式需要时PCKS格式的。关于私钥

from cordova-plugin-alipay.

likunNet avatar likunNet commented on July 27, 2024

私钥我用工具生成的,应该没问题。就是没有android studio 环境来调试。

from cordova-plugin-alipay.

charleyw avatar charleyw commented on July 27, 2024

看你说的现象,应该是原生代码执行出错了。
我估计使用adb命令也可以,类似这样:

adb logcat

from cordova-plugin-alipay.

Related Issues (20)

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.