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


Source code

# @brief Параметры покупки продукта.
class_name RuStorePayProductPurchaseParams extends RefCounted

# @brief Идентификатор продукта, который был присвоен продукту в консоли RuStore.
var productId: RuStorePayProductId = null

#   как для платежей вне RuStore, так и для случаев, когда пользователь не авторизован в RuStore.
var appUserEmail: RuStorePayAppUserEmail = null

#   Максимальная длина 128 символов.
var appUserId: RuStorePayAppUserId = null

#   которую вы можете установить при инициализации процесса покупки (необязательный параметр).
var developerPayload: RuStorePayDeveloperPayload = null

#   Максимальная длина 150 символов.
var orderId: RuStorePayOrderId = null

# @brief Количество продукта (необязательный параметр).
var quantity: RuStorePayQuantity = null

func _init(
    productId: RuStorePayProductId,
    appUserEmail: RuStorePayAppUserEmail = null,
    appUserId: RuStorePayAppUserId = null,
    developerPayload: RuStorePayDeveloperPayload = null,
    orderId: RuStorePayOrderId = null,
    quantity: RuStorePayQuantity = null
):
    self.productId = productId
    self.appUserEmail = appUserEmail
    self.appUserId = appUserId
    self.developerPayload = developerPayload
    self.orderId = orderId
    self.quantity = quantity
Назад