applejws

package module
v0.0.0-...-b9aa3bf Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 6 Imported by: 0

README

appstorejws

appstorejws is a package for validing and decoding apple itunes appstore jws. Apple Authority Certificate Already embeded

appstorejws 是一个苹果appstore接口所用JWT解析库

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJWS

func DecodeJWS(jwtStr string, claims jwt.Claims) (jwt.Claims, error)

Types

type JWSTransactionPayload

type JWSTransactionPayload struct {
	AppAccountToken             string `json:"appAccountToken"`
	BundleId                    string `json:"bundleId"`
	Environment                 string `json:"environment"`
	ExpiresDate                 int64  `json:"expiresDate"`
	InAppOwnershipType          string `json:"inAppOwnershipType"`
	IsUpgraded                  bool   `json:"isUpgraded"`
	OfferIdentifier             string `json:"offerIdentifier"`
	OfferType                   int32  `json:"offerType"`
	OriginalPurchaseDate        int64  `json:"originalPurchaseDate"`
	OriginalTransactionId       string `json:"originalTransactionId"`
	ProductId                   string `json:"productId"`
	PurchaseDate                int64  `json:"purchaseDate"`
	Quantity                    int64  `json:"quantity"`
	RevocationDate              int64  `json:"revocationDate"`
	RevocationReason            int32  `json:"revocationReason"`
	SignedDate                  int64  `json:"signedDate"`
	SubscriptionGroupIdentifier string `json:"subscriptionGroupIdentifier"`
	TransactionId               string `json:"transactionId"`
	Type                        string `json:"type"`
	WebOrderLineItemId          string `json:"webOrderLineItemId"`
}

https://developer.apple.com/documentation/appstoreservernotifications/jwstransactiondecodedpayload

func (JWSTransactionPayload) Valid

func (jpl JWSTransactionPayload) Valid() error

Jump to

Keyboard shortcuts

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