feat: payment pay

This commit is contained in:
zzw
2026-09-11 16:08:17 +08:00
parent f8c7419964
commit d9529a219d
33 changed files with 3108 additions and 89 deletions
+30
View File
@@ -0,0 +1,30 @@
package bank
import (
"context"
pkgpay "lone-services/pkg/payment"
)
// Channel is a placeholder for bank-card / unionpay (to be implemented later).
type Channel struct{}
func NewChannel() *Channel {
return &Channel{}
}
func (c *Channel) Name() string {
return pkgpay.ChannelBank
}
func (c *Channel) Prepay(context.Context, string, *pkgpay.PrepayRequest) (*pkgpay.PrepayResult, error) {
return nil, pkgpay.ErrNotImplemented
}
func (c *Channel) Refund(context.Context, *pkgpay.RefundRequest) (*pkgpay.RefundResult, error) {
return nil, pkgpay.ErrNotImplemented
}
func (c *Channel) ParsePayNotify(context.Context, map[string]string, []byte) (*pkgpay.NotifyResult, error) {
return nil, pkgpay.ErrNotImplemented
}