微信SDK接通
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
import type { WechatJsapiPrepayParams } from '@dukang/shared-types';
|
||||
|
||||
export type PayOrderResult =
|
||||
| { mode: 'mock'; externalNo: string }
|
||||
| { mode: 'jsapi'; prepay: WechatJsapiPrepayParams };
|
||||
|
||||
export interface IPayProvider {
|
||||
payOrder(orderId: bigint): Promise<{ externalNo: string }>;
|
||||
payOrder(orderId: bigint, openId?: string): Promise<PayOrderResult>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user