0.0.4 • Published 2 years ago

capacitor-plugin-wxalipay v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
ParamType
options{ value: string; }

Returns: any


wxPayRequest(...)

wxPayRequest(options: WxParams) => any
ParamType
optionsWxParams

Returns: any


aliPayRequest(...)

aliPayRequest(options: AlipayParams) => any
ParamType
optionsAlipayParams

Returns: any


Interfaces

WxParams

PropType
appIdstring
mchIdstring
prepayIdstring
noncestrstring
timestampnumber
signstring

AlipayParams

PropType
orderInfostring