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

Option to force Lightbox mode on mobile #8

Open
danmaas opened this issue Sep 8, 2016 · 1 comment
Open

Option to force Lightbox mode on mobile #8

danmaas opened this issue Sep 8, 2016 · 1 comment

Comments

@danmaas
Copy link

danmaas commented Sep 8, 2016

Hi - we would like to have an option to XPayStationWidget.init() to force the use of Lightbox mode on mobile devices. This is because we run our games within an iframe and it is not possible to spawn a child window from JavaScript running inside the iframe. But, we tested Lightbox mode and it works well.

@mikehayesuk
Copy link

mikehayesuk commented Mar 18, 2017

+1

In our case, the Xsolla token is requested from our server asynchronously after clicking the payment button. As such, the browser blocks the popup.

Perhaps something like this on line 132 of src/app.js?

if (!this.config.lightbox.force && (new Device).isMobile()) {

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