Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigNil = errors.New("ERR_CONFIG_NIL")
)
Functions ¶
This section is empty.
Types ¶
type AppStoreHandler ¶
type AppStoreHandler func(voided *AppStoreVoidedPurchasesListResponse, err error) error
type AppStoreLatestReceiptInfo ¶
type AppStoreLatestReceiptInfo struct { OriginalTransactionID string `json:"original_transaction_id"` ProductID string `json:"product_id"` Reason string `json:"cancellation_reason"` // 1: refund requested by user CancellationDateMS string `json:"cancellation_ms"` InAppOwnershipType string `json:"in_app_ownership_type"` }
type AppStoreNotiType ¶
type AppStoreNotiType string
type AppStoreVoidedPurchasesListResponse ¶
type AppStoreVoidedPurchasesListResponse struct { NotificationType AppStoreNotiType `json:"notification_type"` BundleID string `json:"bid"` Password string `json:"password"` LatestReceiptInfo AppStoreLatestReceiptInfo `json:"latest_receipt_info"` }
type PlayStoreConfiguration ¶
func (*PlayStoreConfiguration) Auth ¶
func (c *PlayStoreConfiguration) Auth() string
func (*PlayStoreConfiguration) ID ¶
func (c *PlayStoreConfiguration) ID() string
type PlayStoreHandler ¶
type PlayStoreHandler func(voided *PlayStoreVoidedPurchasesListResponse, err error) error
type PlayStoreVoidedPurchasesListResponse ¶
type PlayStoreVoidedPurchasesListResponse androidpublisher.VoidedPurchasesListResponse
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
func NewReceiver ¶
func (*Receiver) ReceiveAppStore ¶
func (sub *Receiver) ReceiveAppStore(handler AppStoreHandler, addr string)
func (*Receiver) ReceivePlayStore ¶
func (sub *Receiver) ReceivePlayStore(handler PlayStoreHandler, interval time.Duration, opts ...opt.Option) error
NOTE: this function serves all voided purchases all the time. you need to check whether the order duplicated.
Click to show internal directories.
Click to hide internal directories.