Documentation
¶
Index ¶
- type Config
- type Service
- func (s *Service) ClosePayment(endpoint string, payment *base.Payment) error
- func (s *Service) CreatePayment(endpoint string, payment *base.Payment) (*base.CreatePaymentResp, error)
- func (s *Service) GetPayment(endpoint string, query *base.PaymentQuery) (*base.PaymentNotify, error)
- func (s *Service) Init(app sptty.ISptty) error
- func (s *Service) QueryRefund(endpoint string, query *base.QueryRefund) (*base.QueryRefundResp, error)
- func (s *Service) QueryTransfer(endpoint string, query *base.QueryTransfer) (*base.QueryTransferResp, error)
- func (s *Service) Refund(endpoint string, payment *base.Payment) error
- func (s *Service) Release()
- func (s *Service) ServiceName() string
- func (s *Service) SetupNotify(endpoint string, handler base.PaymentNotifyHandler)
- func (s *Service) Transfer(endpoint string, transfer *base.PaymentTransfer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
sptty.BaseConfig
PaymentUrl string `yaml:"payment_url"`
Endpoints map[string]base.PaymentEndpoint `yaml:"endpoints"`
}
func (*Config) ConfigName ¶
type Service ¶
type Service struct {
sptty.BaseService
// contains filtered or unexported fields
}
func (*Service) ClosePayment ¶
func (*Service) CreatePayment ¶
func (*Service) GetPayment ¶
func (s *Service) GetPayment(endpoint string, query *base.PaymentQuery) (*base.PaymentNotify, error)
func (*Service) QueryRefund ¶
func (s *Service) QueryRefund(endpoint string, query *base.QueryRefund) (*base.QueryRefundResp, error)
func (*Service) QueryTransfer ¶
func (s *Service) QueryTransfer(endpoint string, query *base.QueryTransfer) (*base.QueryTransferResp, error)
func (*Service) ServiceName ¶
func (*Service) SetupNotify ¶
func (s *Service) SetupNotify(endpoint string, handler base.PaymentNotifyHandler)
Click to show internal directories.
Click to hide internal directories.