utils

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const (
	//TestAccessKey ...
	TestAccessKey = "fake_key"
	//TestAccessSecret ...
	TestAccessSecret = "fake_secret"
)

Variables

View Source
var (

	//Client ...
	Client *razorpay.Client
)

Functions

func StartMockServer

func StartMockServer(url string, fixtureName string) (func(), string)

StartMockServer ...

func TestResponse

func TestResponse(jsonBodyByteArray []byte, fixtureByteArray []byte, t *testing.T)

TestResponse ...

func VerifyPaymentLinkSignature

func VerifyPaymentLinkSignature(queryParams map[string]interface{}, webhookSignature string, webhookSecret string) bool

func VerifyPaymentSignature

func VerifyPaymentSignature(queryParams map[string]interface{}, webhookSignature string, webhookSecret string) bool

func VerifySignature

func VerifySignature(body []byte, signature string, key string) bool

func VerifySubscriptionSignature

func VerifySubscriptionSignature(queryParams map[string]interface{}, webhookSignature string, webhookSecret string) bool

func VerifyWebhookSignature

func VerifyWebhookSignature(requestBody string, webhookSignature string, webhookSecret string) bool

Validate webhooks

Types

This section is empty.

Jump to

Keyboard shortcuts

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