31 lines
715 B
Go
31 lines
715 B
Go
package alipay
|
|
|
|
import (
|
|
"context"
|
|
|
|
pkgpay "lone-services/pkg/payment"
|
|
)
|
|
|
|
// Channel is a placeholder for Alipay (to be implemented later).
|
|
type Channel struct{}
|
|
|
|
func NewChannel() *Channel {
|
|
return &Channel{}
|
|
}
|
|
|
|
func (c *Channel) Name() string {
|
|
return pkgpay.ChannelAlipay
|
|
}
|
|
|
|
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
|
|
}
|