Versions in this module Expand all Collapse all v0 v0.2.21 Oct 23, 2023 v0.2.20 Oct 23, 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)