Gestão de compras
To set up payments via Steam:
- Sign an additional agreement with Xsolla.
- Set up the gateway for Steam in your Publisher Account.
- Set up native authentication via Steam.
- Open the Unity project.
- Click
Window > Xsolla > Edit Settings in the main menu. - In the
Inspector panel, selectSteam Gateway in thePayments field.
After changing the Unity project settings, the x-steam-userid
header will be added to the payment token request.
Use this how-to when working only with the following assets:
- Game Commerce
- Cross-Buy
Cross-Buy asset will be deprecated in April 2022. You can continue to use it, but it will not be updated and supplemented with new features. It is recommended to switch to the Game Commerce asset. It contains all the classes and methods needed to work with Xsolla products.
- virtual currency package
- game key
- virtual item
For details on the features and limitations of coupon promotions, see the In-Game Store guide.
To work with coupon promotions:
- Complete the settings in Publisher Account following to the instructions for setting up promotional campaigns with coupons.
- Implement in-game logic using the following SDK methods:
GetCouponRewards
— gets a list of items that can be credited to the user when the coupon is redeemed. TheGet coupon rewards API call is used alongside the SDK method.RedeemCouponCode
— redeems the coupon code and rewards the user. TheRedeem coupon code API call is used alongside the SDK method.
- discount that applies to the user’s cart
- bonus items:
- virtual currency package
- game key
- virtual item including a bundle or nonrenewing subscription
For details on the features and limitations of campaigns with promo codes, see the In-Game Store guide.
To work with promo codes:
- Complete the settings in Publisher Account by following the instructions for setting up a campaign with promo codes.
- Implement in-game logic using the following SDK methods:
GetPromocodeReward
— gets promo code rewards. Allows users to choose one of many items as a bonus. TheGet promo code reward API call is used alongside the SDK method.RedeemPromocode
— redeems promo code. After redeeming a promo code, the user gets free items and/or the price of the cart is decreased. TheRedeem promo code API call is used alongside the SDK method.
A bundle may include:
- virtual currency (including the platform-dependent currency)
- package of virtual currency
- game keys for preselected DRMs
- virtual items including nonrenewing subscriptions
- bundles
For details on the features and limitations of bundles, see the In-Game Store guide.
To work with bundles:
- Complete the settings in Publisher Account by following the instructions for setting up a bundle.
- Implement in-game logic using the following SDK methods:
GetBundles
— gets a list of bundles for building a catalog. TheGet list of bundles API call is used alongside the SDK method.GetBundle
— gets a bundle for the specified SKU. TheGet specified bundle API call is used alongside the SDK method.
total_content_price
parameter. You can use this value to display the benefits of buying a bundle in your application.Use this how-to when working only with the following assets:
- Game Commerce
- Cross-Buy
Cross-Buy asset will be deprecated in April 2022. You can continue to use it, but it will not be updated and supplemented with new features. It is recommended to switch to the Game Commerce asset. It contains all the classes and methods needed to work with Xsolla products.
To integrate your store site with the SDK:
- Create a store site.
- Specify the site address of the in-game store in the application code.
- Implement the logic for your application to work with the store site.
Crie um site para a loja
You can create a store site with Site Builder by following the instructions for connecting a store on the site.
If you want to connect a store site that was created using a different solution, follow the instructions for creating a store.
Recomendações para a lógica do seu aplicativo trabalhar com o site de armazenamento
Follow these recommendations when developing your application:
- Synchronize the fields of user registration and authorization in your application and in the Login widget on the store site:
- If a user email and password are used for registration and authorization, set the username equal to the email in the application.
- If you use a username, user email and password for registration and authorization, contact your Account Manager to change the Login widget fields.
- When navigating to the store site from the application client, implement pass-through user authorization. To do this, the user token must be passed in the URL parameters. An example of authorization is shown in the demo scene for the Cross-Buy asset.
Encontrou um erro de texto ou digitação? Selecione o texto e pressione Ctrl+Enter.