Files
dukang/server/dukang-api/src/integrations/pay/pay.interface.ts
T
2026-07-01 19:56:44 +08:00

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>;
}