sslcommerz

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(gw string, source map[string]interface{}) (string, error)

GetImage retrieves the image URL from the response data

func HashPassword

func HashPassword(password string) string

HashPassword hashes the store password using MD5

func VerifyHash

func VerifyHash(storePass string, postData map[string]interface{}) (bool, error)

VerifyHash verifies the hash signature of the response

Types

type SSLCommerz

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

func NewSSLCommerz

func NewSSLCommerz() *SSLCommerz

func (*SSLCommerz) GetImage

func (s *SSLCommerz) GetImage(gw string, source map[string]interface{}) (string, error)

func (*SSLCommerz) HashVerify

func (s *SSLCommerz) HashVerify(storePass string, postData map[string]interface{}) (bool, error)

func (*SSLCommerz) InitiatePayment

func (s *SSLCommerz) InitiatePayment(postData *sslcommerzEntity.PaymentRequest) (map[string]interface{}, error)

func (*SSLCommerz) SSLCOMMERZ_hash_varify

func (s *SSLCommerz) SSLCOMMERZ_hash_varify(storePass string, postData map[string]interface{}) (bool, error)

func (*SSLCommerz) ValidateTransaction

func (s *SSLCommerz) ValidateTransaction(tranID, amount, currency string, postData map[string]interface{}) (bool, error)

Jump to

Keyboard shortcuts

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