Unity SDK for XIAOMI provides an easy way to intergrate with XIAOMI’s IAP and Unity Ads in Unity editor. This is the Alpha v0.0.8 build.
If UnityAds has been activated through Unity service window, you can delete the UnityAds folder in Assets.
When prompted to update Unity IAP, DO NOT update.
Changelog
- Fix wrong format of
orderQueryToken
. - Use “CNY” in
ProductDescription
metadata. - Return
purchaseInfo
details when Purchase fails, through JSON dictionary returned byIUnityChannelExtensions.GetLastPurchaseError()
:{ "error": "ProductUnavailable", "purchaseInfo": {"gameOrderId": "the-id", "productCode": "the-code", "orderQueryToken": "the-token"} }
- Support local receipt validation (demonstrated in
IAPDemo.cs
)- New
Unity Channel Public Key
field inReceipt Validation Obfuscator
window. - Support UnityChannel tangled Public Key data in
CrossPlatformValidator
API. - New
UnityChannelReceipt
class returned by validator containing all data from receipt server. - Support simple receipt validation with new
bool IUnityChannelConfiguration.fetchReceiptPayloadOnPurchase
API to call the receipt validation REST API during purchasing returned to ProcessPurchase. Populate Unity IAPProduct.receipt
JSON “Payload” field with data(“signature”, “signData”)
needed byCrossPlatformValidator
. If error during REST call, Product will still call ProcessPurchase but “Payload” JSON will includeerror
field.
- New
Downloads
- Unity Package (Demo inlcuded)
- IAP Doc
- Ads Doc
Support
If you have any question, feel free to contact us at iapsupport@unity3d.com for IAP and chinaads@unity3d.com for Ads.