capacitor-plugin-wxalipay
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

/capacitor-plugin-wxalipay/

    Package Sidebar

    Install

    npm i capacitor-plugin-wxalipay

    Weekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    36.3 kB

    Total Files

    31

    Last publish

    Collaborators

    • fwindpeak