Skip to content
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

How to know when to stop checking order status #69

Open
artyom-v opened this issue Aug 15, 2023 · 3 comments
Open

How to know when to stop checking order status #69

artyom-v opened this issue Aug 15, 2023 · 3 comments

Comments

@artyom-v
Copy link

I'm using XsollaCatalog.Purchase method for items purchasing.
How to know if user don't start paying in purchase UI and closed it, so I can stop tracking order status?

@DenisRakhimovXsolla
Copy link
Contributor

The XsollaCatalog.Purchase method has an onBrowseClosed callback that will be called after the browser is closed and the BrowserCloseInfo data will be returned with the isManually variable. If this variable is true, this means that the player manually closed the browser and refuse the purchase.
But this only applies to the “in-game browser”.
Otherwise, we have no way to track user behavior.

@artyom-v
Copy link
Author

Not true. Some of our users use mobile payments to purchase products. And they may close the "in-game browser" before the payment is successful. So onBrowseClosed callback is useless.

@DenisRakhimovXsolla
Copy link
Contributor

in this case, you can start the process of getting the order status yourself - call the XsollaOrders.CheckOrderStatus method after closing the browser (ignoring the isManually variable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants