paytokens

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 11 Imported by: 0

README

paytokens

paytokens is a Go package for handle Google Pay and Apple Pay transactions.

Apple Pay token decryption depends on native libssl, so you need to install it before use this package. You may need to confogure your PKG_CONFIG_PATH to include OpenSSL.

Getting up and running with the example

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Leaf

func Leaf(c *tls.Certificate) (*x509.Certificate, error)

func LoadPemCertificate

func LoadPemCertificate(path string) (*tls.Certificate, error)

func LoadPemPrivateKey

func LoadPemPrivateKey(path string) (crypto.PrivateKey, error)

func ParsePemCertificate

func ParsePemCertificate(bytes []byte) (*tls.Certificate, error)

func ParsePemPrivateKey

func ParsePemPrivateKey(bytes []byte) (crypto.PrivateKey, error)

func ResolveCertificateExtension

func ResolveCertificateExtension(cert *x509.Certificate, oid asn1.ObjectIdentifier) ([]byte, error)

ResolveCertificateExtension returns the value of a certificate extension if it exists

Types

type Base64Encoded

type Base64Encoded []byte

func (Base64Encoded) String

func (v Base64Encoded) String() string

func (*Base64Encoded) UnmarshalJSON

func (v *Base64Encoded) UnmarshalJSON(bytes []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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