refactor(payment): 支付插件 - 宿主仅通过 RPC 包加载并保护订单版本
This commit is contained in:
1 parent
d6bbdbe27b
commit
38e715ea3f
45 files changed
+1584
-203
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package paymentplugins
|
||||
|
||||
import paymentsdk "infinite-canvas/backend/payment-sdk"
|
||||
|
||||
type Config = paymentsdk.Config
|
||||
type Descriptor = paymentsdk.Descriptor
|
||||
type NotificationResponse = paymentsdk.NotificationResponse
|
||||
type CreateRequest = paymentsdk.CreateRequest
|
||||
type Checkout = paymentsdk.Checkout
|
||||
type QueryRequest = paymentsdk.QueryRequest
|
||||
type CloseRequest = paymentsdk.CloseRequest
|
||||
type Result = paymentsdk.Result
|
||||
type Notification = paymentsdk.Notification
|
||||
type BillRecord = paymentsdk.BillRecord
|
||||
type Provider = paymentsdk.Provider
|
||||
type ProviderError = paymentsdk.ProviderError
|
||||
|
||||
var (
|
||||
ErrOrderNotFound = paymentsdk.ErrOrderNotFound
|
||||
ErrOrderNotPaid = paymentsdk.ErrOrderNotPaid
|
||||
ErrTradeBillNotFound = paymentsdk.ErrTradeBillNotFound
|
||||
)
|
||||
|
||||
const (
|
||||
ProviderWeChatNative = "wechat-native"
|
||||
ProviderAlipayPage = "alipay-page-pay"
|
||||
PluginWeChatNative = "official-payment-wechat-native"
|
||||
PluginAlipayPage = "official-payment-alipay-page"
|
||||
)
|
||||
Reference in new issue
Block a user