Kits SDK para Unity / Códigos promocionales
  Volver a Documentos

Kits SDK para Unity

Códigos promocionales

When redeeming a promo code, the user may receive one or more of the following rewards:

  • discount that applies to the user’s cart
  • bonus item:
    • virtual currency package
    • game key
    • virtual item including a bundle or time-limited item

Nota
Promo codes can only be activated after adding items to the cart.

For details on the features and limitations of campaigns with promo codes, see the In-Game Store guide.

To implement a promo code campaign:

  1. Set up a campaign with promo codes.
  2. Implement a shopping cart UI and logic of purchasing via the shopping cart in your application.
  3. In the shopping cart UI, add the following elements:
    • field for entering a promotional code
    • the form of displaying the reward for the promotional code
    • button to activate the promo code

Nota
You can also contact your Account Manager to set up a campaign with promo codes if you do not want to implement an interface and additional logic for working with promo codes. In this case, the input and activation of the promotional code will be carried out not in the interface of the cart, but when paying for the purchase in Pay Station.
  1. Implement in-game logic using the following SDK methods:
    • GetPromocodeReward — returns a list of items that can be credited to the user when the promo code is activated. Allows users to choose from several available items.
    • RedeemPromocode — activates a promotional code. After activating the promotional code, the user gets free items and/or the price of the cart is reduced.
    • RemovePromocodeFromCart — removes a promo code from a cart. After the promo code is removed, the total price of all items in the cart will be recalculated without bonuses and discounts provided by a promo code.
¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Valore esta página
Valore esta página
¿Hay algo en lo que podamos mejorar?

Prefiero no responder

¡Gracias por tu mensaje!
Última actualización: 10 de Octubre de 2023

¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.

Informar de un problema
Nos esforzamos por ofrecer contenido de calidad. Tus comentarios nos ayudan a mejorar.
Déjanos tu correo electrónico para que te podamos responder
¡Gracias por tu mensaje!