Releases: xsolla/commerce-cocos-sdk
Releases · xsolla/commerce-cocos-sdk
Xsolla Commerce Cocos Creator SDK v0.7.1 [Cocos Creator 3.8.0]
Fixed
- Opening Pay Station in web builds on mobile devices
Xsolla Commerce Cocos Creator SDK v0.7.1 [Cocos Creator 3.3.1]
Fixed
- Opening Pay Station in web builds on mobile devices
Xsolla Commerce Cocos Creator SDK v0.7.0 [Cocos Creator 3.8.0]
Added
- Centrifugo integration. Doesn’t establish web socket connection for Android and iOS builds, short polling is used instead
Changed
authWithXsollaWidget
SDK method moved toXsollaAuth
authSocial
SDK method moved toXsollaAuth
classlinkSocialNetwork
SDK method moved toXsollaUserAccount
classopenPurchaseUI
SDK method: moved toXsollaPayments
class, addedonClose
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 , usegetCart
insteadclearCartById
SDK method , useclearCart
insteadfillCartById
SDK method , usefillCart
insteadupdateItemInCartById
SDK method , useupdateItemInCart
insteadremoveItemFromCartById
SDK method , useremoveItemFromCart
instead
Fixed
- Minor bugs
Xsolla Commerce Cocos Creator SDK v0.7.0 [Cocos Creator 3.3.1]
Added
- Centrifugo integration. Doesn’t establish web socket connection for Android and iOS builds, short polling is used instead
Changed
authWithXsollaWidget
SDK method moved toXsollaAuth
authSocial
SDK method moved toXsollaAuth
classlinkSocialNetwork
SDK method moved toXsollaUserAccount
classopenPurchaseUI
SDK method: moved toXsollaPayments
class, addedonClose
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 , usegetCart
insteadclearCartById
SDK method , useclearCart
insteadfillCartById
SDK method , usefillCart
insteadupdateItemInCartById
SDK method , useupdateItemInCart
insteadremoveItemFromCartById
SDK method , useremoveItemFromCart
instead
Fixed
- Minor bugs
Xsolla Commerce Cocos Creator SDK v0.6.0
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 topaymentInterfaceThemeIdWebGL
paymentInterfaceThemeAndroid
renamed topaymentInterfaceThemeIdAndroid
paymentInterfaceThemeIOS
renamed topaymentInterfaceThemeIdIOS
Xsolla Commerce Cocos Creator SDK v0.5.0
Changed
fetchPaymentToken
andfetchCartPaymentToken
SDK methods. Added theexternalId
parameterXsollaSettingsManager
class. ThepaymentInterfaceThemeWebGL
,paymentInterfaceThemeAndroid
,paymentInterfaceThemeIOS
are converted tostring
- SDK methods for getting catalog (
XsollaCatalog
class). Added thelimits
parameter for items - Payment UI theme is
default_dark
by default CurrencyFormatter
class moved fromxsolla-commerce-sdk
extension to demo projectXsollaSettingsManager
class moved from demo project toxsolla-commerce-sdk
extensioncheckPendingOrder
method moved from demo project toxsolla-commerce-sdk
extension
Xsolla Commerce Cocos Creator SDK v0.4.0
Added
- Ability to order free items. Use
createOrderWithSpecifiedFreeItem
andcreateOrderWithFreeCart
SDK methods to implement it. ThefetchCartPaymentToken
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
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
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 toXsollaInventory.getTimeLimitedItems()
Xsolla Commerce Cocos Creator SDK v0.1.0
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.