robokassa

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOnlyIntegerRub = errors.New("only integer rub allowed")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	merchantLogin,
	passwordOne,
	isTest string,
) Client

func (Client) CreatePaymentURL

func (c Client) CreatePaymentURL(rkInvoiceID uint64, amount uint32) (paymentURL string, err error)

type Webhook

type Webhook struct {
	// contains filtered or unexported fields
}

func NewWebhook

func NewWebhook(
	logger zerolog.Logger,
	stanConn stan.Conn,
	eventLogModel event_log.Model,
	balanceModel balance.Model,
	invoiceModel invoice.Model,
	mongoStartSession func(opts ...*options.SessionOptions) (mongo.Session, error),
	serviceName,
	webhookSecret,
	passwordTwo,
	isTest string,
) Webhook

func (Webhook) GracefulStop

func (w Webhook) GracefulStop()

func (Webhook) ProcessAsync

func (w Webhook) ProcessAsync(
	secret string,
	invID uint64,
	outSum float32,
	signatureValue string,
) (
	err error,
)

func (Webhook) Serve

func (w Webhook) Serve() (err error)

func (Webhook) Subscribe

func (w Webhook) Subscribe() (err error)

Jump to

Keyboard shortcuts

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