capacitor-plugin-wxalipay
v0.0.4
Published
capacitor 3 plugin for wechatPay and alipay
Downloads
1
Readme
capacitor-plugin-wxalipay
capacitor 3 plugin for wechatPay and alipay
forked from veluxa/capacitor-plugin-pay
配置
- 修改项目中的配置文件
capacitor.config.json
,增加微信 appid 配置plugins.wxalipay.wxappId
- 修改项目中插件的
build.gradle
文件,def wxPayPackageName = "<your.package.name>"
改为自己的包名
Install
npm install capacitor-plugin-wxalipay
npx cap sync
API
echo(...)
echo(options: { value: string; }) => any
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: any
wxPayRequest(...)
wxPayRequest(options: WxParams) => any
| Param | Type |
| ------------- | --------------------------------------------- |
| options
| WxParams |
Returns: any
aliPayRequest(...)
aliPayRequest(options: AlipayParams) => any
| Param | Type |
| ------------- | ----------------------------------------------------- |
| options
| AlipayParams |
Returns: any
Interfaces
WxParams
| Prop | Type |
| --------------- | ------------------- |
| appId
| string |
| mchId
| string |
| prepayId
| string |
| noncestr
| string |
| timestamp
| number |
| sign
| string |
AlipayParams
| Prop | Type |
| --------------- | ------------------- |
| orderInfo
| string |