fix: 接入抖音原生支付并修复App支付服务缺失

This commit is contained in:
Codex
2026-09-09 12:00:13 +08:00
parent b350f1c07a
commit fe8cc21bfe
155 changed files with 11995 additions and 634 deletions
@@ -0,0 +1,29 @@
export type InitOptions = {
appId: string,
callbackScheme: string,
universalLink?: string | null
}
// All fields must come from the authenticated server prepay response.
export type PayInfo = {
appid: string,
partnerid: string,
prepayid: string,
package: string,
noncestr: string,
timestamp: string,
sign: string
}
export type PayOptions = {
payInfo: PayInfo,
showLoading?: boolean | null
}
// Code 0 is only an SDK hint, never proof that the order was paid.
export type PayResult = {
resultCode: string,
errorMsg: string,
needsQuery: boolean
}
export type PayCallback = (result: PayResult) => void