Documentation
¶
Index ¶
- Constants
- func GetAppStoreReceiptData() string
- func PaySubscribe(productId string)
- func PayUpgrade(productId string)
- func RestoreAction()
- func SetPayAlertCallback(f func(alertType string))
- func SetPayLoadingCallback(f func(loadType string))
- func SetPayPurchasedSuccessCallback(f func(productId, transactionId string))
- func SetPayRestoredCallback(f func(success bool))
Constants ¶
View Source
const ( StatusPayLoadingTypeRestore = "Restore" StatusPayLoadingTypeSubscribing = "Subscribing" StatusPayLoadingTypeHide = "Hide" StatusPayAlertTypeCantMakePayment = "CantMakePayment" StatusPayAlertTypeProductIdNil = "ProductIdNil" StatusPayAlertTypeNotExistProduct = "NotExistProduct" StatusPayAlertTypeRestoreFailed = "RestoreFailed" StatusPayAlertTypeFailedTransaction = "FailedTransaction" )
Variables ¶
This section is empty.
Functions ¶
func GetAppStoreReceiptData ¶
func GetAppStoreReceiptData() string
func PaySubscribe ¶
func PaySubscribe(productId string)
func PayUpgrade ¶
func PayUpgrade(productId string)
func RestoreAction ¶
func RestoreAction()
func SetPayAlertCallback ¶
func SetPayAlertCallback(f func(alertType string))
func SetPayLoadingCallback ¶
func SetPayLoadingCallback(f func(loadType string))
func SetPayPurchasedSuccessCallback ¶
func SetPayPurchasedSuccessCallback(f func(productId, transactionId string))
func SetPayRestoredCallback ¶
func SetPayRestoredCallback(f func(success bool))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.