Link Search Menu Expand Document

Constructor: payments.starGiftUpgradePreview

Back to constructors index

A preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.

Attributes:

NameTypeRequiredDescription
sample_attributesArray of StarGiftAttributeYesPossible gift attributes
pricesArray of StarGiftUpgradePriceYes
next_pricesArray of StarGiftUpgradePriceYes

Type: payments.StarGiftUpgradePreview

Example:

$payments_starGiftUpgradePreview = ['_' => 'payments.starGiftUpgradePreview', 'sample_attributes' => [StarGiftAttribute, StarGiftAttribute], 'prices' => [StarGiftUpgradePrice, StarGiftUpgradePrice], 'next_prices' => [StarGiftUpgradePrice, StarGiftUpgradePrice]];