paystack

package
v0.0.0-...-2ad697a Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializeResponse

type InitializeResponse struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
	Data    struct {
		AuthorizationURL string `json:"authorization_url"`
		AccessCode       string `json:"access_code"`
		Reference        string `json:"reference"`
	} `json:"data"`
}

type Service

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

func NewService

func NewService() *Service

func (*Service) InitiateTransaction

func (s *Service) InitiateTransaction(email string, amountKobo int64, reference, callbackURI string) (*InitializeResponse, error)

func (*Service) VerifyResponse

func (s *Service) VerifyResponse(reference string) (*VerifyResponse, error)

func (*Service) VerifyWebhookSignature

func (s *Service) VerifyWebhookSignature(body []byte, signature string) bool

type VerifyResponse

type VerifyResponse struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
	Data    struct {
		Status    string `json:"status"`
		Amount    int64  `json:"amount"`
		Reference string `json:"reference"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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