Commit 57c0976d authored by hewenhao's avatar hewenhao

feat(util): 新增商户转账功能

新增 RequestMerchantTransferParams 接口定义,包含商户号、 应用ID和包信息参数。 新增 requestMerchantTransfer 方法,用于调用原生桥接进行商户转账操作。
parent e0c4e097
...@@ -137,3 +137,16 @@ export function makeCall (phone: string) { ...@@ -137,3 +137,16 @@ export function makeCall (phone: string) {
export function goHome () { export function goHome () {
return invokeNativeMethod<null, null>({ type: 'goHome' }) return invokeNativeMethod<null, null>({ type: 'goHome' })
} }
export interface RequestMerchantTransferParams {
/** 商户号,与发起转账接口 mchid 一致 */
mchId: string;
/** 开放平台移动应用 appid,与发起转账一致 */
appId: string;
/** 发起转账应答中的 package_info(单据为 WAIT_USER_CONFIRM 时返回) */
package: string;
}
export function requestMerchantTransfer (params: RequestMerchantTransferParams) {
return invokeNativeMethod<null, RequestMerchantTransferParams>({ type: 'requestMerchantTransfer', data: params })
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment