capacitor-alipay
v0.0.6
Published
capacitor plugin for alipay
Downloads
4
Readme
capacitor-alipay
Usage
Install
npm i -S capacitor-alipay
npx cap update
Android
Edit native code.
npx cap open android
Find module
app
, open<your package>/MainActivity.java
, addadd(alipay.class);
.Edit project's
build.gradle
allprojects {
repositories {
flatDir {
dirs project(':capacitor-alipay').file('libs')
}
...
}
...
}
- As official guided, you have to store your private key at your server and offer api for
orderInfo
andauthInfo
.
编辑原生代码。
npx cap open android
打开 IDE。找到
app
模块,找到你包名下的MainActivity.java
,添加add(alipay.class);
。修改项目的
build.gradle
,如上(见英文部分)如官方所说,必须将私钥等信息存储在服务器,通过 api 提供
orderInfo
和authInfo
。
For more infomation, plz refer to alipay official wiki
更多详情 官方文档
IOS
TBD
API
pay
- param:
{orderInfo: string}
- return:
{payResult: string, result: string}
- param:
auth
- param:
{orderInfo: string}
- return:
{payResult: string, result: string}
- param:
orderInfo
andauthInfo
is string return from your api.code
, 0 for success, -1 for failure.result
, detail result
For more infomation, plz refer to alipay official wiki