Git Product home page Git Product logo

Comments (12)

zzlsucceed avatar zzlsucceed commented on June 4, 2024

已解决! 私钥使用 PKCS8格式 即可

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

嗯,我都是按照官方文档走的,官方文档提示用PKCS8格式。

from cordova-plugin-alipay.

zzlsucceed avatar zzlsucceed commented on June 4, 2024

弱弱地问下 你这个调用之后的 成功失败回调 在哪里写啊

from cordova-plugin-alipay.

zzlsucceed avatar zzlsucceed commented on June 4, 2024

还有就是fromUrlScheme这个参数我没写 影响那个notifyUrl么 好像没有通知到我的这个页面

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

这个没有加callback. 所以没有成功失败的callback...

获取成功失败是通过fromUrlScheme完成的。

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

比如我自己的app里面,有一个支付完成的界面。这个fromUrlScheme就是指向这个页面的。

from cordova-plugin-alipay.

zzlsucceed avatar zzlsucceed commented on June 4, 2024

good 了解了

from cordova-plugin-alipay.

zzlsucceed avatar zzlsucceed commented on June 4, 2024

我的程序是 SenchaTouch写的单页面程序- - 这个 URL Scheme 咋整- -

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

你的APP设置了URL Scheme么? 看看这个:https://github.com/EddyVerbruggen/Custom-URL-scheme

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

刚才大体看了一下SenchaTouch,好吧,感觉还挺复杂的。

我说一下那个fromUrlScheme是怎么工作的吧:

  1. 支付完成的页面叫A,你可以通过某个url访问,比如说,woshischeme://apage
    这里woshischeme就是前面说的URL Scheme,作用你可以理解为就是代表你的APP,后面跟的//apage就是代表A页面的路径
  2. 支付成功支付宝会调用woshischeme://apage,意思就是打开woshischeme代表的APP(woshischeme和APP的映射是系统做的),并且到apage这个页面(apage和A页面的映射是需要你自己做的,也就是俗称的路由 SenchaTouch的路由)。

所以呢,用这个插件的基本点,1. 你使用URL Scheme 2. 你有路由或者其他东西能表示页面的状态

后面等有时间,我再把callback加上

from cordova-plugin-alipay.

zzlsucceed avatar zzlsucceed commented on June 4, 2024

好!

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 4, 2024

fixed in db0bfb7

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.