Versions in this module Expand all Collapse all v1 v1.3.2 Jun 13, 2022 Changes in this version + const GenerationTimeFormat + const GenerationTimeKey + func FormatCardNumber(number string) string + func FormatMonthYear(month T, year int) (string, string) + func PubKeyFromBytes(b []byte, publicExponent ...int) *rsa.PublicKey + type AdyenVersion string + var Version118 AdyenVersion = "0_1_18" + var Version121 AdyenVersion = "0_1_21" + type Encrypter struct + GetGenerationTime GenerationTimeFunc + Version AdyenVersion + func NewEncrypter(version AdyenVersion, pubKey *rsa.PublicKey) (enc *Encrypter, err error) + func (enc *Encrypter) EncryptField(key, value string) (string, error) + func (enc *Encrypter) EncryptFields(fields map[string]string) (string, error) + func (enc *Encrypter) EncryptMarshal(payload interface{}) (string, error) + func (enc *Encrypter) EncryptPlaintext(plaintext []byte) (string, error) + func (enc *Encrypter) Reset() (err error) + type GenerationTimeFunc func() time.Time