10 lines
302 B
TypeScript
10 lines
302 B
TypeScript
import type { WechatJsapiPrepayParams } from '@dukang/shared-types';
|
|
|
|
export type PayOrderResult =
|
|
| { mode: 'mock'; externalNo: string }
|
|
| { mode: 'jsapi'; prepay: WechatJsapiPrepayParams };
|
|
|
|
export interface IPayProvider {
|
|
payOrder(orderId: bigint, openId?: string): Promise<PayOrderResult>;
|
|
}
|