Skip to content

Releases: xsolla/commerce-cocos-sdk

Xsolla Commerce Cocos Creator SDK v0.7.0 [Cocos Creator 3.8.0]

06 Dec 11:42
Compare
Choose a tag to compare

Added

  • Centrifugo integration. Doesn’t establish web socket connection for Android and iOS builds, short polling is used instead

Changed

  • authWithXsollaWidget SDK method moved to XsollaAuth
  • authSocial SDK method moved to XsollaAuth class
  • linkSocialNetwork SDK method moved to XsollaUserAccount class
  • openPurchaseUI SDK method: moved to XsollaPayments class, added onClose callback parameter (optional)
  • SDK methods for cart management. The following methods operate with the cart with specified ID or with the cart of current user if ID is not specified: getCart, clearCart, fillCart, updateItemInCart, removeItemFromCart

Removed

  • getCartById SDK method , use getCart instead
  • clearCartById SDK method , use clearCart instead
  • fillCartById SDK method , use fillCart instead
  • updateItemInCartById SDK method , use updateItemInCart instead
  • removeItemFromCartById SDK method , use removeItemFromCart instead

Fixed

  • Minor bugs

Xsolla Commerce Cocos Creator SDK v0.7.0 [Cocos Creator 3.3.1]

06 Dec 11:37
Compare
Choose a tag to compare

Added

  • Centrifugo integration. Doesn’t establish web socket connection for Android and iOS builds, short polling is used instead

Changed

  • authWithXsollaWidget SDK method moved to XsollaAuth
  • authSocial SDK method moved to XsollaAuth class
  • linkSocialNetwork SDK method moved to XsollaUserAccount class
  • openPurchaseUI SDK method: moved to XsollaPayments class, added onClose callback parameter (optional)
  • SDK methods for cart management. The following methods operate with the cart with specified ID or with the cart of current user if ID is not specified: getCart, clearCart, fillCart, updateItemInCart, removeItemFromCart

Removed

  • getCartById SDK method , use getCart instead
  • clearCartById SDK method , use clearCart instead
  • fillCartById SDK method , use fillCart instead
  • updateItemInCartById SDK method , use updateItemInCart instead
  • removeItemFromCartById SDK method , use removeItemFromCart instead

Fixed

  • Minor bugs

Xsolla Commerce Cocos Creator SDK v0.6.0

14 Sep 09:47
Compare
Choose a tag to compare

Added

  • authWithXsollaWidget NativeUtil method. Allows to open Xsolla Login widget on mobile platforms
  • Code samples for most common user scenarios.

Updated

XsollaSettingsManager class:

  • Added FacebookClientToken parameter for project settings. Allows to set up native user authentication via Facebook Android application
  • paymentInterfaceThemeWebGL renamed to paymentInterfaceThemeIdWebGL
  • paymentInterfaceThemeAndroid renamed to paymentInterfaceThemeIdAndroid
  • paymentInterfaceThemeIOS renamed to paymentInterfaceThemeIdIOS

Xsolla Commerce Cocos Creator SDK v0.5.0

27 Jun 14:25
Compare
Choose a tag to compare

Changed

  • fetchPaymentToken and fetchCartPaymentToken SDK methods. Added the externalId parameter
  • XsollaSettingsManager class. The paymentInterfaceThemeWebGL, paymentInterfaceThemeAndroid, paymentInterfaceThemeIOS are converted to string
  • SDK methods for getting catalog (XsollaCatalog class). Added the limits parameter for items
  • Payment UI theme is default_dark by default
  • CurrencyFormatter class moved from xsolla-commerce-sdk extension to demo project
  • XsollaSettingsManager class moved from demo project to xsolla-commerce-sdk extension
  • checkPendingOrder method moved from demo project to xsolla-commerce-sdk extension

Xsolla Commerce Cocos Creator SDK v0.4.0

08 Feb 14:10
Compare
Choose a tag to compare

Added

  • Ability to order free items. Use createOrderWithSpecifiedFreeItem and createOrderWithFreeCart SDK methods to implement it. The fetchCartPaymentToken SDK method also supports free items
  • Settings validation (demo)

Changed

  • Tracking order status logic. Order status is requested via a web socket. After 5 minutes, the web socket connection is re-created. If the web socket returned an error, the status is requested with a short-polling. Short-polling is expired after 10 minutes

Xsolla Commerce Cocos Creator SDK v0.3.0

31 Aug 07:51
Compare
Choose a tag to compare

Added

  • SDK methods for working with subscriptions (XsollaSubscriptions class)
  • Demo user generation

Changed

  • SDK methods for working with catalog (XsollaCatalog class). They support catalog personalization

Xsolla Commerce Cocos Creator SDK v0.2.0

02 Jun 09:25
Compare
Choose a tag to compare

Added

  • Ability to open payment UI via build-in browser on mobile devices. Custom Tabs are used for Android and WebView is used for iOS

Changed

  • XsollaInventory.getSubscriptions() SDK method. The method was renamed to XsollaInventory.getTimeLimitedItems()

Xsolla Commerce Cocos Creator SDK v0.1.0

26 Apr 13:48
Compare
Choose a tag to compare

Authentication

  • OAuth 2.0 protocol-based authentication.
  • Classic login via username/email and password.
  • Social login.
  • Login using a device ID.
  • Passwordless login via a one-time code or a link sent via SMS or email.

User management

  • User attributes to manage additional information.
  • User account.
  • Friend system.
  • Secure Xsolla storage for user data. Alternatively, you can connect PlayFab, Firebase, or your own custom storage.

Catalog

  • Virtual currency:
    • Sell virtual currency in any amount or in packages (for real money or other virtual currency).
    • Sell hard currency (for real money only).
  • Virtual items:
    • Set up a catalog of in-game items.
    • Sell virtual items for real and virtual currency.
  • Bundles:
    • Sell bundles for real or virtual currency.
  • Promotional campaigns:
    • Reward users with virtual currency packages, game keys, or virtual items for coupons.
    • Give users bonuses or discounts on items in the cart with promo codes.
  • Sell items with one click or using the shopping cart.

Item purchase

  • Provide users with a convenient payment UI. The main features are:
    • 700+ payment methods in 200+ countries, including bank cards, digital wallets, mobile payments, cash kiosks, gift cards, and special offers.
    • 130+ currencies.
    • UI localized into 20+ languages.
    • Desktop and mobile versions.

Player inventory

  • Get and verify an inventory.
  • Consume items according to the in-game logic.
  • Spend virtual currency according to the in-game logic (for example, when opening a location or purchasing a level).
  • Synchronize all purchases and premium rewards of the user across all platforms.