fix: 接入抖音原生支付并修复App支付服务缺失
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user