Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Fix blocked payment window (1122243)#914

Merged
muffinresearch merged 2 commits into
mozilla:masterfrom
muffinresearch:fix-blocked-payment-popup-1122243
Jan 16, 2015
Merged

Fix blocked payment window (1122243)#914
muffinresearch merged 2 commits into
mozilla:masterfrom
muffinresearch:fix-blocked-payment-popup-1122243

Conversation

@muffinresearch

Copy link
Copy Markdown
Contributor

This opens a popup for the payment when logged out. This is done as part of the click to the button so the popup isn't blocked.. The login window will then sit over the top of this.

If the login fails the payment window will be closed too.

This can't close the payment window when the login window is closed because afaict the deferred login isn't being rejected in this scenario.

r? @kumar303

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit but I think it would be better to call this as payments.openWindow() and then define it in the exports as {..., openWindow: fxpay.utils.openWindow}.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The downside of this is that the context is then wrong for the defaults usage [1] (a bug in itself). I'll leave this as is and fix that up next week along with the default url.

[1] https://github.com/mozilla/fxpay/blob/master/lib/fxpay/utils.js#L51

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d'oh

@kumar303

Copy link
Copy Markdown
Contributor

This is a temporary solution. Off the thread we discussed a better solution here: https://etherpad.mozilla.org/fireplace-pay-popup-madness

@kumar303

Copy link
Copy Markdown
Contributor

r+wc

muffinresearch added a commit that referenced this pull request Jan 16, 2015
…-1122243

Fix blocked payment window (1122243)
@muffinresearch muffinresearch merged commit 147625a into mozilla:master Jan 16, 2015
@muffinresearch muffinresearch deleted the fix-blocked-payment-popup-1122243 branch January 16, 2015 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants