import Vnmf from '../../index' declare module '../../index' { namespace requestPayment { interface Option { /** Time stamp,From 1970 Year 1 Month 1 Day 00:00:00 Number of seconds to date,_Other Organiser */ timeStamp: string /** Random String,Length32Below Characters */ nonceStr: string /** Unified returns from the next single interface prepay_id Parameter Values,Submission format, e.g.:prepay_id=*** */ package: string /** Signature Algorithm */ signType?: keyof SignType /** Signature,For specific signature options see [Applet payment interface document](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_7&index=3) */ paySign: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (res: VnmfGeneral.CallbackResult) => void } interface SignType { /** Pay only in micromail. v2 Version Interface Applies */ MD5 /** Pay only in micromail. v2 Version Interface Applies */ 'HMAC-SHA256' /** Pay only in micromail. v3 Version Interface Applies */ RSA } } namespace requestOrderPayment { interface Option { /** Time stamp,From 1970 Year 1 Month 1 Day 00:00:00 Number of seconds to date,_Other Organiser */ timeStamp: string /** Random String,Length32Below Characters */ nonceStr: string /** Unified returns from the next single interface prepay_id Parameter Values,Submission format, e.g.:prepay_id=*** */ package: string /** Order Information,It only needs to be passed on the scene that verified.,See, in particular,[Interface description](https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/requestOrderPayment) */ orderInfo? /** External APP User ID */ extUserUin?: string /** Signature Algorithm */ signType?: keyof SignType /** Signature,For specific signature options see [Applet payment interface document](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_7&index=3) */ paySign: string /** Interface call to the end of echo function(Call successfully、Any failure will be enforced.) */ complete?: (res: VnmfGeneral.CallbackResult) => void /** Interface call failed echo function */ fail?: (res: VnmfGeneral.CallbackResult) => void /** Interface calls a successful echo function */ success?: (res: VnmfGeneral.CallbackResult) => void } interface SignType { /** Pay only in micromail. v2 Version Interface Applies */ MD5 /** Pay only in micromail. v2 Version Interface Applies */ 'HMAC-SHA256' /** Pay only in micromail. v3 Version Interface Applies */ RSA } } interface VnmfStatic { /** Launch micro-payments。Further information,Please look.[MicroMail Payment Interface Document](https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=7_3&index=1) * @supported weapp, h5 * @example * ```tsx * Vnmf.requestPayment({ * timeStamp: '', * nonceStr: '', * package: '', * signType: 'MD5', * paySign: '', * success: function (res) { }, * fail: function (res) { } * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestPayment.html */ requestPayment(option: requestPayment.Option): Promise /** Create custom version of transactional component orders,♪ And initiate the payment。 It's only in.[Customized version of the transaction component](https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/Introduction2)The applet needs to be used.,Normal applets are directly available `Vnmf.requestPayment`。 * @supported weapp * @example * Divide orderInfo Outside,The rest of the field with [Vnmf.requestPayment](./requestPayment) Unanimously. * * ```tsx * Vnmf.requestOrderPayment({ * orderInfo: {}, * timeStamp: '', * nonceStr: '', * package: '', * signType: 'MD5', * paySign: '', * success (res) { }, * fail (res) { } * }) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/payment/wx.requestOrderPayment.html */ requestOrderPayment(option: requestOrderPayment.Option): Promise /** Pay for the security scene's certifier's face. * @supported weapp * @deprecated * @example * ```tsx * Vnmf.faceVerifyForPay(params).then(...) * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.faceVerifyForPay.html */ faceVerifyForPay(option: any): Promise } }