librefund

package
v0.0.0-...-8f31e64 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BufferDelay = 7 * 24 * time.Hour

BufferDelay is the amount of time allowed after objective exparation for refunding contributions.

View Source
const CheckInterval = 10 * time.Second

Variables

This section is empty.

Functions

func NewAmount

func NewAmount(m *librefund.Money) *api.Amount

Types

type Adapter

type Adapter struct {
	Config librefund.Config
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(
	cfg librefund.Config,
) (*Adapter, error)

func (*Adapter) GetLastPayments

func (s *Adapter) GetLastPayments(
	from int,
	amount int,
) ([]*payment.Payment, error)

func (*Adapter) PaymentURL

func (s *Adapter) PaymentURL(paymentID string) (string, error)

OrderURL returns the URL for fulfilling the order.

func (*Adapter) RefundPayment

func (s *Adapter) RefundPayment(
	paymentID string,
	req *payment.RefundRequest,
) (*payment.RefundResponse, error)

func (*Adapter) SetLogger

func (s *Adapter) SetLogger(log librefund.Logger)

func (*Adapter) StartPayment

func (s *Adapter) StartPayment(
	req *payment.PaymentRequest,
) (*payment.PaymentResponse, error)

func (*Adapter) TransferMethod

func (s *Adapter) TransferMethod() string

Jump to

Keyboard shortcuts

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