android

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAndroidVerifier

func NewAndroidVerifier(serviceAccountJSON []byte, pkgName string, product string) iap.Verifier

Types

type AndroidVerifier

type AndroidVerifier struct {
	// contains filtered or unexported fields
}

AndroidVerifier uses the Google Play Developer API to verify purchase tokens.

func (*AndroidVerifier) GetReceiptIdentifier

func (m *AndroidVerifier) GetReceiptIdentifier(ctx context.Context, receipt string) ([]byte, error)

func (*AndroidVerifier) VerifyReceipt

func (v *AndroidVerifier) VerifyReceipt(ctx context.Context, receipt string) (bool, error)

Jump to

Keyboard shortcuts

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