-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huawei Unity IAP Did Not Worked. #488
Comments
Thank you for reporting this issue/advice. |
Is there any update on this? |
Hi @MushoodMunir. We are under review. If you want, you can try the suggestions below until this process is complete.
|
No, I didn't use any AccountKitManager before IAP operation. I directly tried to initialize the IAP flow by checking "Initialize On Start" option from Kit Settings -> IAP dialogue. And it failed to Initialize straight away. Is't AccountKitManager will come into play after the purchases are initialized successfully and at the time user will try to buy any IAP? Or AccountKitManager has something to do with the successful Initialization of IAP's? If there is some kind of dependency between these two can you please guide me to workflow of it? |
Basically, if the user can't login, they can't do any IAP operations. This is normal, because this transaction has to belong to an account. The purpose of the "Initialize On Start" option is to prepare your IAP products for use. Don't be related to any account or user operation. If you look at the at the below demo scene file, you can see the guide in the code file. Writes in comment line what you need to do, and you can also see how to do user operations or start operations. |
Got it, As you said that The purpose of the "Initialize On Start" option is to prepare your IAP products for use. Don't be related to any account or user operation. Here i get the problem as products are not being Initialized at all and i get some error code in response visible in screenshots that i attached. |
Did you follow the 5-step instructions in the code file I shared above and the structure in the "Start" method? Are you still getting an error? Also, can you try with another Android device ? Or Can you update the HMS Core version of of your device (Honor 8S)? (Grater than 3.0 Hms core version) @MushoodMunir |
It worked with singing in using AccountKit before performing any IAP operations. |
Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin Your support helps us continue to improve our repository and provide valuable resources for others. |
Describe the bug & problem
I am trying to implement Huawei IAP in my Unity Project. However, I am not able to launch Huawei payment flow when clicking on my IAP's button. I followed the online available tutorials and created the IAP products on Huawei app gallery console. According to my understanding everything is configured correctly but receiving error when IAP is initialized.
Expected behavior
IAP should work and payment screen should launch successfully.
Screenshots & Detailed log
Environment
Smartphone
The text was updated successfully, but these errors were encountered: