API/Autodoc/Files/RuStorePayPurchase.gd.en.md


Source code

# @brief Purchase information.
class_name RuStorePayPurchase extends RefCounted

# @brief Purchase identifier.
var purchaseId: RuStorePayPurchaseId = null

# @brief Invoice identifier.
var invoiceId: RuStorePayInvoiceId = null

#   Maximum length is 150 characters.
var orderId: RuStorePayOrderId = null

# @brief Purchase type.
var purchaseType: ERuStorePayPurchaseType.Item = 0

# @brief Description in the language.
var description: RuStorePayDescription = null

# @brief Purchase time (optional parameter).
var purchaseTime: RuStorePayTime = null

# @brief Price in minimum units (e.g., kopecks).
var price: RuStorePayPrice = null

# @brief Formatted purchase price, including the currency symbol.
var amountLabel: RuStorePayAmountLabel = null

# @brief Currency code ISO 4217.
var currency: RuStorePayCurrency = null

#   which you can set when initializing the purchase process (optional parameter).
var developerPayload: RuStorePayDeveloperPayload = null

#   Values can be true or false, where true indicates a test payment and false a real one.
var sandbox: bool = false

var _status = 0

func _set_status(value):
    _status = value
    
# @brief Purchase status.
func get_status():
    return _status
Назад