Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f1d3ae7b2 |
@@ -152,14 +152,14 @@ type (
|
|||||||
// The IAPLatestResponse type has the response properties
|
// The IAPLatestResponse type has the response properties
|
||||||
// If you use latest_receipt as token to verify, response should be like following struct
|
// If you use latest_receipt as token to verify, response should be like following struct
|
||||||
IAPLatestResponse struct {
|
IAPLatestResponse struct {
|
||||||
Status int `json:"status,omitempty"`
|
Status int `json:"status,omitempty"`
|
||||||
Receipt InApp `json:"receipt"`
|
Receipt InApp `json:"receipt"`
|
||||||
LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"`
|
LatestReceiptInfo InApp `json:"latest_receipt_info,omitempty"`
|
||||||
LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"`
|
LatestExpiredReceiptInfo InApp `json:"latest_expired_receipt_info,omitempty"`
|
||||||
LatestReceipt string `json:"latest_receipt,omitempty"`
|
LatestReceipt string `json:"latest_receipt,omitempty"`
|
||||||
SubscriptionAutoRenewStatus interface{} `json:"auto_renew_status,omitempty"`
|
SubscriptionAutoRenewStatus string `json:"auto_renew_status,omitempty"`
|
||||||
SubscriptionAutoRenewProductID string `json:"auto_renew_product_id,omitempty"`
|
SubscriptionAutoRenewProductID string `json:"auto_renew_product_id,omitempty"`
|
||||||
SubscriptionRetryFlag string `json:"is_in_billing_retry_period,omitempty"`
|
SubscriptionRetryFlag string `json:"is_in_billing_retry_period,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// The HttpStatusResponse struct contains the status code returned by the store
|
// The HttpStatusResponse struct contains the status code returned by the store
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// SandboxURL is the endpoint for sandbox environment.
|
// SandboxURL is the endpoint for sandbox environment.
|
||||||
SandboxURL string = "https://boron2.ngrok.io/verifyReceipt"
|
SandboxURL string = "https://sandbox.itunes.apple.com/verifyReceipt"
|
||||||
// ProductionURL is the endpoint for production environment.
|
// ProductionURL is the endpoint for production environment.
|
||||||
ProductionURL string = "https://buy.itunes.apple.com/verifyReceipt"
|
ProductionURL string = "https://buy.itunes.apple.com/verifyReceipt"
|
||||||
// ContentType is the request content-type for apple store.
|
// ContentType is the request content-type for apple store.
|
||||||
|
|||||||
Reference in New Issue
Block a user