@aigens/aigens-sdk-wechat
v0.4.1
Published
Aigens SDK Wechat
Downloads
3
Readme
aigens-sdk-wechathk
Aigens SDK WechatHK
Install
npm install aigens-sdk-wechathk
npx cap sync
API
reset()
reset() => Promise<any>
Returns: Promise<any>
isWXAppInstalled(...)
isWXAppInstalled(options?: { key: string; } | undefined) => Promise<{ install: boolean; }>
| Param | Type |
| ------------- | ----------------------------- |
| options
| { key: string; } |
Returns: Promise<{ install: boolean; }>
registerApp(...)
registerApp(options: { appId: string; universalLink: string; }) => Promise<any>
| Param | Type |
| ------------- | ------------------------------------------------------ |
| options
| { appId: string; universalLink: string; } |
Returns: Promise<any>
makePaymentRequest(...)
makePaymentRequest(options: { options: WeChatPayOptions; }) => Promise<WechatPayResultOptions>
| Param | Type |
| ------------- | --------------------------------------------------------------------------- |
| options
| { options: WeChatPayOptions; } |
Returns: Promise<WechatPayResultOptions>
Interfaces
WechatPayResultOptions
| Prop | Type |
| ------------------- | -------------------- |
| result
| any |
| success
| boolean |
| userCancelled
| boolean |
| resultStatus
| number |
WeChatPayOptions
| Prop | Type |
| --------------- | ------------------- |
| partnerId
| string |
| prepayId
| string |
| nonceStr
| string |
| openID
| string |
| timeStamp
| string |
| sign
| string |
| package
| string |