Socket
Book a DemoInstallSign in
Socket

cordova-plugin-payments-alipay

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-payments-alipay

Alipay for cordova app

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

支付宝支付 cordova 插件

支持ios, android 开通服务: https://open.alipay.com

安装

cordova plugin add cordova-plugin-payments-alipay --variable APP_ID=你的ID --save

ionic cordova plugin add cordova-plugin-payments-alipay --variable APP_ID=你的ID

相关依赖 cordova-plugin-cocoapod-support

cordova plugin add cordova-plugin-cocoapod-support --save

ionic cordova plugin add cordova-plugin-cocoapod-support

使用方法

打开支付页面

const orderstring = 'xxx'; // 后台生成的字符串
window.Alipay.pay(orderstring, res => {
    console.log('成功');
}, e => {
  console.error(e);
});

打开授权页面

const authstring = 'xxx'; // 后台生成的字符串
window.Alipay.auth(authstring, res => {
    console.log('成功');
}, e => {
  console.error(e);
});

IONIC Wrap

https://github.com/yc-ionic/alipay

代码捐献

非常期待您的代码捐献。

Keywords

cordova

FAQs

Package last updated on 04 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts