@letscollab/mbdpay / Exports / MbdPay
• new MbdPay(appId
, appKey
, options?
)
Name | Type |
---|---|
appId |
string |
appKey |
string |
options? |
MdbpayOptions |
• Private
#BASE_URL: string
= 'https://api.mianbaoduo.com'
• Private
#OPENID_URL: string
= 'https://mbd.pub/openid'
• Private
#client: Got
• Private
basicOptions: any
= {}
▸ Private
#getBody(options
, addition?
): string
Name | Type |
---|---|
options |
Record <string , any > |
addition? |
Record <string , any > |
string
▸ Private
#getSign(options
, appKey
): string
Name | Type |
---|---|
options |
Record <string , any > |
appKey |
string |
string
▸ aliPay(options
): CancelableRequest
<Response
<string
>>
see
https://doc.mbd.pub/api/zhi-fu-bao-zhi-fu
Name | Type |
---|---|
options |
AliOptions |
CancelableRequest
<Response
<string
>>
▸ getOpenId(options
): Promise
<Response
<string
>>
see
https://doc.mbd.pub/api/huo-qu-yong-hu-openid
Name | Type |
---|---|
options |
OpenIdOptions |
Promise
<Response
<string
>>
▸ getOrder(options
): CancelableRequest
<Response
<string
>>
see
https://doc.mbd.pub/api/ding-dan-cha-xun
Name | Type |
---|---|
options |
GetOrderOptions |
CancelableRequest
<Response
<string
>>
▸ refund(options
): CancelableRequest
<Response
<string
>>
see
https://doc.mbd.pub/api/tui-kuan
Name | Type |
---|---|
options |
RefundOptions |
CancelableRequest
<Response
<string
>>
▸ weChatPay(options
): Promise
<Response
<string
>>
see
https://doc.mbd.pub/api/wei-xin-zhi-fu
Name | Type |
---|---|
options |
WeChatOptions |
Promise
<Response
<string
>>
▸ weChatPayH5(options
): CancelableRequest
<Response
<string
>>
see
https://doc.mbd.pub/api/wei-xin-h5-zhi-fu
Name | Type |
---|---|
options |
WeChatH5Options |
CancelableRequest
<Response
<string
>>