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>"
改为自己的包名
npm install capacitor-plugin-wxalipay
npx cap sync
echo(options: { value: string; }) => any
Param | Type |
---|---|
options |
{ value: string; } |
Returns: any
wxPayRequest(options: WxParams) => any
Param | Type |
---|---|
options |
WxParams |
Returns: any
aliPayRequest(options: AlipayParams) => any
Param | Type |
---|---|
options |
AlipayParams |
Returns: any
Prop | Type |
---|---|
appId |
string |
mchId |
string |
prepayId |
string |
noncestr |
string |
timestamp |
number |
sign |
string |
Prop | Type |
---|---|
orderInfo |
string |