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
authWithXsollaWidgetSDK method moved toXsollaAuthauthSocialSDK method moved toXsollaAuthclasslinkSocialNetworkSDK method moved toXsollaUserAccountclassopenPurchaseUISDK method: moved toXsollaPaymentsclass, addedonClosecallback 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
getCartByIdSDK method , usegetCartinsteadclearCartByIdSDK method , useclearCartinsteadfillCartByIdSDK method , usefillCartinsteadupdateItemInCartByIdSDK method , useupdateItemInCartinsteadremoveItemFromCartByIdSDK method , useremoveItemFromCartinstead
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
authWithXsollaWidgetSDK method moved toXsollaAuthauthSocialSDK method moved toXsollaAuthclasslinkSocialNetworkSDK method moved toXsollaUserAccountclassopenPurchaseUISDK method: moved toXsollaPaymentsclass, addedonClosecallback 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
getCartByIdSDK method , usegetCartinsteadclearCartByIdSDK method , useclearCartinsteadfillCartByIdSDK method , usefillCartinsteadupdateItemInCartByIdSDK method , useupdateItemInCartinsteadremoveItemFromCartByIdSDK method , useremoveItemFromCartinstead
Fixed
- Minor bugs
Xsolla Commerce Cocos Creator SDK v0.6.0
Added
authWithXsollaWidgetNativeUtil method. Allows to open Xsolla Login widget on mobile platforms- Code samples for most common user scenarios.
Updated
XsollaSettingsManager class:
- Added
FacebookClientTokenparameter for project settings. Allows to set up native user authentication via Facebook Android application paymentInterfaceThemeWebGLrenamed topaymentInterfaceThemeIdWebGLpaymentInterfaceThemeAndroidrenamed topaymentInterfaceThemeIdAndroidpaymentInterfaceThemeIOSrenamed topaymentInterfaceThemeIdIOS
Xsolla Commerce Cocos Creator SDK v0.5.0
Changed
fetchPaymentTokenandfetchCartPaymentTokenSDK methods. Added theexternalIdparameterXsollaSettingsManagerclass. ThepaymentInterfaceThemeWebGL,paymentInterfaceThemeAndroid,paymentInterfaceThemeIOSare converted tostring- SDK methods for getting catalog (
XsollaCatalogclass). Added thelimitsparameter for items - Payment UI theme is
default_darkby default CurrencyFormatterclass moved fromxsolla-commerce-sdkextension to demo projectXsollaSettingsManagerclass moved from demo project toxsolla-commerce-sdkextensioncheckPendingOrdermethod moved from demo project toxsolla-commerce-sdkextension
Xsolla Commerce Cocos Creator SDK v0.4.0
Added
- Ability to order free items. Use
createOrderWithSpecifiedFreeItemandcreateOrderWithFreeCartSDK methods to implement it. ThefetchCartPaymentTokenSDK 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 (
XsollaSubscriptionsclass) - Demo user generation
Changed
- SDK methods for working with catalog (
XsollaCatalogclass). 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.