-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cash shop issue #2349
Comments
Fixed |
was my change the fix? |
Why |
The already own thing might be a message from Google Play, so I can't know why, maybe you should try ask Google Play |
Hmm, seems like I have to change its implementation, a new one will connects to external web-service, which uses https://github.com/voltrue2/in-app-purchase, also plan to store purchasing log to database by the web-service. |
that would be great yea. Im also looking into making a General Logger for the game, like Dealings, Login , log out, location from login etc |
@insthync After fixing the IAP Bug server side Client sends request to google to purchase cash.. It Took 2 minutes for order to be processed.. Client Timed out long ago.. And then anything u try to do in the shop you get this.. Client shouldnt be responsible for processing this.. Server should be or an API.. And what if my client crashes before i get my receipt? The whole process is bad. |
How did you fix it? just apply my commit? If yes, then why it will fix issues because the issues are from |
I did not say it will fix the issue, im saying After applying the Server side Bug fix, its still not working because of others reasons, being the Receipt, i didnt even know the DefaultIAPReceiptValidator wasnt working on current version, i figured that out based on Testing and debugging. But we know now its not working cuase im testing it |
Ahh, I see, so it won't have anything fixed yet. |
When u change something to it, let me know pls, so i can test it out. |
More Crash Logs from IAP |
As I said issues are from |
The Also, as Suri mentioned, Unity's IAP is a bit insecure as its client-side validation and they themselves refer/link to https://github.com/voltrue2/in-app-purchase for server side validation (cause they donot provide it). It might be worth the effort to create our own server-side validation using direct GooglePlay/Apple APIs. @Callepo can you try to run the |
@shubhank008 Seems like Unity's IAP validation won't work on standalone platforms anymore, so So I am just telling you guys to try to create your own validating component by implements But if you guys want to implement it by yourself then go ahead it is fine too, Or if you are going to use Google's API for validation by yourself at map-server (like as I did to What I've planned to do is: I will create a new component which implements But I actually recommend you guys to create your own IAP system including product listing UIs (at client) because the built-in one was planned to make it work for both Offline and MMO games projects and it is hard to update product data, which you have to do it in Unity then build then upload. |
Atm i just need the simplest and easiest one that works for now, and than i can take the time to check for any alternatives. " Seems like Unity's IAP validation won't work on standalone platforms anymore, so DefaultIAPReceiptValidator won't work anymore." |
i wasn't rushing you, u asked me for logs before, and i found logs so i shared it with you. |
I mean receipt validating by server, server builds are standalone platforms. |
It should not warn service is not available by logs you've shown me, because playerCharacterEntity.IsUpdatingItems should set to false so next request should not warn that message |
@Callepo Where can I find this history I can't find it in Google Play Console, and as I try I can't find "you already own this item" problems. |
The service is done, tested, work as intended https://github.com/suriyun-mmorpg/mmorpg-kit-iap-validation-service |
Repo seems private, cannot access it |
Okay, changed it to be public |
@insthync is it supposed to add cash to account even when doing sandbox mode for testing? Or only in live mode? Its not failing anymore and Refunding all the purchases. Everything seems fine, just Status 0 and cash not added. |
Should be added while it is in test mode, I did internal test. |
Status 0 is success. |
We are also doing the same, Internal Testing |
Try latest commit of MMO repo |
Pushed |
Try to debug amount of |
@insthync im retarded.. Sorry |
Nice |
But yea ur latest commit 100% fixed it. its showing instantly now |
Glad to see this fixed :) Thanks from my side as well to both of you! |
do i have to use this above package for this fixed to take effect? |
@tubhluas Yes |
The HandleRequestCashPackageBuyValidation
has a bug i think.
The isupdatingItems in the other methods when its sending response to client all have it to false..
But this one is being set to true..
and i am checking this becuase when you buy cash ingame, you dont get the cash, and when u try to buy 2nd time, it tells u service not available..
Which is literally this
The text was updated successfully, but these errors were encountered: