1.0.0 • Published 11 months ago

gomro-cap-plugin-pay v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

gomro-cap-plugin-pay

A Capactor Plugin for Wechat & Alipay

Install

npm install gomro-cap-plugin-pay
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


wxPayRequest(...)

wxPayRequest(options: WxParams) => Promise<any>
ParamType
optionsWxParams

Returns: Promise<any>


aliPayRequest(...)

aliPayRequest(options: AlipayParams) => Promise<any>
ParamType
optionsAlipayParams

Returns: Promise<any>


Interfaces

WxParams

PropType
appIdstring
mchIdstring
prepayIdstring
noncestrstring
timestampstring
signstring

AlipayParams

PropType
orderInfostring
1.0.0

11 months ago