Versions in this module Expand all Collapse all v1 v1.1.0 May 9, 2023 Changes in this version + type MockEncryptor struct + Serial string + func (e *MockEncryptor) Encrypt(ctx context.Context, serial, plaintext string) (ciphertext string, err error) + func (e *MockEncryptor) SelectCertificate(ctx context.Context) (serial string, err error) + type WechatPayEncryptor struct + func NewWechatPayEncryptor(certProvider core.CertificateGetter) *WechatPayEncryptor + func (e *WechatPayEncryptor) Encrypt(ctx context.Context, serial, plaintext string) (ciphertext string, err error) + func (e *WechatPayEncryptor) SelectCertificate(ctx context.Context) (serial string, err error)