Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SandboxURL is the endpoint for local environment. SandboxURL string = "http://localhost:8080/RVSSandbox" // ProductionURL is the endpoint for production environment. ProductionURL string = "https://appstore-sdk.amazon.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client implements IAPClient
func NewWithConfig ¶
NewWithConfig creates a client with configuration
type IAPClient ¶
type IAPClient interface {
Verify(string, string) (IAPResponse, error)
}
IAPClient is an interface to call validation API in Amazon App Store
type IAPResponse ¶
type IAPResponse struct { ReceiptID string `json:"receiptId"` ProductType string `json:"productType"` ProductID string `json:"productId"` PurchaseDate int64 `json:"purchaseDate"` CancelDate int64 `json:"cancelDate"` TestTransaction bool `json:"testTransaction"` }
The IAPResponse type has the response properties
type IAPResponseError ¶
The IAPResponseError typs has error message and status.
Click to show internal directories.
Click to hide internal directories.