webhooks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataOrgID        = "org_id"
	MetadataConnectionID = "connection_id"
	MetadataPaymentID    = "payment_id"
)

Metadata keys expected by Reevit webhooks.

Variables

This section is empty.

Functions

func BuildMetadata

func BuildMetadata(orgID, connectionID, paymentID string) map[string]string

BuildMetadata returns the canonical metadata map expected by Reevit webhooks.

func FlutterwaveHash

func FlutterwaveHash(secretHash string) string

FlutterwaveHash simply returns the verif-hash header value (no hashing required).

func SignHubtel

func SignHubtel(body []byte, clientSecret string) string

SignHubtel returns the X-Hubtel-Signature header (HMAC SHA256 of the raw body).

func SignPaystack

func SignPaystack(body []byte, secretKey string) string

SignPaystack returns the X-Paystack-Signature header (HMAC SHA512 of the raw body).

func SignPolar

func SignPolar(body []byte, clientSecret string) string

SignPolar returns the X-Polar-Signature header (HMAC SHA256 of the raw body).

Types

This section is empty.

Jump to

Keyboard shortcuts

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