payment

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (s *Config) ConfigName() string

type Service

type Service struct {
	sptty.BaseService
	// contains filtered or unexported fields
}

func (*Service) ClosePayment

func (s *Service) ClosePayment(endpoint string, payment *base.Payment) error

func (*Service) CreatePayment

func (s *Service) CreatePayment(endpoint string, payment *base.Payment) (*base.CreatePaymentResp, error)

func (*Service) GetPayment

func (s *Service) GetPayment(endpoint string, query *base.PaymentQuery) (*base.PaymentNotify, error)

func (*Service) Init

func (s *Service) Init(app sptty.ISptty) 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) Refund

func (s *Service) Refund(endpoint string, payment *base.Payment) error

func (*Service) Release

func (s *Service) Release()

func (*Service) ServiceName

func (s *Service) ServiceName() string

func (*Service) SetupNotify

func (s *Service) SetupNotify(endpoint string, handler base.PaymentNotifyHandler)

func (*Service) Transfer

func (s *Service) Transfer(endpoint string, transfer *base.PaymentTransfer) error

Directories

Path Synopsis
vendors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL