Git Product home page Git Product logo

Comments (7)

charleyw avatar charleyw commented on June 5, 2024

you may should using following.

    <key>CFBundleURLSchemes</key>
    <array>
      <string>demoScheme</string>
    </array>

And also you should not use alipay as your scheme, since it's for alipay. You should define another string for your application.

And then you can call:

window.alipay.pay({
    tradeNo: tradeNo,
    subject: "测试标题",
    body: "我是测试内容",
    price: 0.02,
    fromUrlScheme: "demoScheme://afterPaymentSuccess",
    notifyUrl: "http://your.server.notify.url"
});

it will open the url in demoScheme(here the name you should define for your application) application.

from cordova-plugin-alipay.

justwezzz avatar justwezzz commented on June 5, 2024

your code is missing😨

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 5, 2024

Updated, do you speak Chinese?

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 5, 2024

You can try to use this plugin to configure your application scheme. https://github.com/EddyVerbruggen/Custom-URL-scheme

I'm using this one in my application.

from cordova-plugin-alipay.

justwezzz avatar justwezzz commented on June 5, 2024

好的,我有空去试试,感谢。(其实chinglish挺带感的)

from cordova-plugin-alipay.

pluswave avatar pluswave commented on June 5, 2024

可以支付,但是有这个LOG,不是到是否有关系

2015-10-20 17:20:34.636 paytest[2712:1681712] -canOpenURL: failed for URL: "alipay://" - error: "This app is not allowed to query for scheme alipay"
2015-10-20 17:20:34.649 paytest[2712:1681712] -canOpenURL: failed for URL: "cydia://" - error: "This app is not allowed to query for scheme cydia"
2015-10-20 17:20:34.653 paytest[2712:1681712] -canOpenURL: failed for URL: "safepay://" - error: "This app is not allowed to query for scheme safepay"

from cordova-plugin-alipay.

charleyw avatar charleyw commented on June 5, 2024

这个是因为更新了ios9之后ios9的url scheme使用有变化。我之后会push更新后的版本

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.