Files
2026-09-11 16:08:17 +08:00

31 lines
725 B
Go

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
}