Versions in this module Expand all Collapse all v1 v1.0.0 Jul 28, 2023 Changes in this version + var ErrCouldNotDecode = errors.New("could not Base64 decode string") + var ErrInvalidInput = errors.New("input is not a factor of the cipher's blocksize") + var ErrInvalidPadding = errors.New("decrypted output does not appear to be correctly PKCS5 padded") + func DecryptRequestBody(body io.Reader, key []byte) ([]byte, error) + func ObfuscateKey(key []byte) []byte + func PKCS5Unpad(input []byte) ([]byte, error) + func StripCtrlChars(input []byte) string + type ClickbankAddress struct + Address1 string + Address2 string + City string + Country string + County string + PostalCode string + State string + type ClickbankContact struct + Address ClickbankAddress + Email string + FirstName string + FullName string + LastName string + PhoneNumber string + type ClickbankCustomer struct + Billing ClickbankContact + Shipping ClickbankContact + type ClickbankHopfeed struct + HopfeedApplicationId int + HopfeedApplicationPayout float32 + HopfeedClickId string + HopfeedCreativeId int + HopfeedVendorPayout float32 + type ClickbankLineItem struct + AccountAmount float32 + DownloadUrl string + ItemNo string + ProductTitle string + Quantity int + Recurring bool + Shippable bool + type ClickbankNotification struct + Affiliate string + AttemptCount int + Currency string + Customer ClickbankCustomer + Hopfeed ClickbankHopfeed + LineItems []ClickbankLineItem + OrderLanguage string + PaymentMethod string + Receipt string + Role string + TotalAccountAmount float32 + TotalOrderAmount float32 + TotalShippingAmount float32 + TotalTaxAmount float32 + TrackingCodes []string + TransactionTime string + TransactionType string + Upsell ClickbankUpsell + Vendor string + VendorVariables map[string]interface{} + Version float32 + func DecodeResponse(encoded_response []byte) (*ClickbankNotification, error) + type ClickbankUpsell struct + UpsellFlowId int + UpsellOriginalReceipt string + UpsellPath string + UpsellSession string + type CryptStruct struct + func NewCryptStruct(key []byte, iv []byte) (*CryptStruct, error) + func (c *CryptStruct) Decrypt(input []byte) ([]byte, error) + func (c *CryptStruct) DecryptPKCS5(input []byte) ([]byte, error) + type EncryptedNotification struct + IV string + Notification string