feat: payment pay
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user