services

package
v0.0.0-...-a544434 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash512

func Hash512(text string) string

Types

type AkouendyPaymentService

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

func NewPaymentService

func NewPaymentService() *AkouendyPaymentService

func (*AkouendyPaymentService) PaymentInit

func (s *AkouendyPaymentService) PaymentInit(payment Payment, oldTrxToken string, callbackUrl string, returnUrl string) (checkoutUrl string, initError error)

func (*AkouendyPaymentService) ValidatePayment

func (s *AkouendyPaymentService) ValidatePayment(check PaymentCheck) (token string, paymentError error)

type Payment

type Payment struct {
	UserId      string
	Amount      int
	Provider    string
	ExternalId  string
	Desc        string
	CheckoutUrl string
}

type PaymentCheck

type PaymentCheck struct {
	RefCmd string
	Status int
	Hash   string
}

type PlatformResponse

type PlatformResponse struct {
	ResponseCode string `json:"response_code"`
	ResponseText string `json:"response_text"`
	Token        string `json:"token"`
}

Jump to

Keyboard shortcuts

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