export interface ApplePayParam { /** * 订单号,可不传 */ orderId: string; /** * 支付订单号 */ tradeNo: string; /** * 内购项目 ID */ productId: string; /** * 业务 ID * * - member-business:会员购买业务 * - babyVideo-business:阳光课堂订阅 * - member-renew-business:会员购买连续包月、季、年业务 */ businessId: string; } export interface ApplePayResult { /** * 支付状态 * * - 1:购买成功 * - 2:用户主动取消 * - 3:扣款失败 * - 4:购买失败(如凭证校验失败) * - 5:其他,如用户未开启应用内支付; */ payStatus: number; /** * 错误信息 */ msg: string; } declare function payByApple(params: ApplePayParam): Promise; export default payByApple;