Closed Bug 872751 Opened 11 years ago Closed 11 years ago

Log out of Bango when a new SIM is inserted

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

VERIFIED FIXED
2013-09-10

People

(Reporter: kumar, Assigned: kumar)

References

Details

When a new SIM is inserted Webpay needs to log out of Bango so that the old SIM card is not billed. This logout will force MT auth (if on wifi) or force cell network identification of the new SIM.

This bug is to track the Webpay changes but it will depend on client-side changes (TBA).

For the user-facing STR and implications see bug 871591

For reference, Webpay already logs out of Bango here as part of the reset PIN flow: https://github.com/mozilla/webpay/blob/2f9f0e17a5bbd8733e53e97221983a3213fb1809/media/js/pay/pay.js#L124
Blocks: 871591
FYI the webpay side is ready to work on now but only in the 1.1 build (and that build might require a RIL).
Priority: -- → P3
Flags: affects-tricycle+
Flags: affects-seville+
Flags: affects-seahorse+
Flags: affects-moss+
Flags: affects-durango+
Assignee: nobody → kumar.mcmillan
Priority: P3 → P2
Version: 1.0 → 1.3
Target Milestone: --- → 2013-09-10
SIM changes are now detected and the Bango cookie is cleared whenever you begin a payment.

https://github.com/mozilla/webpay/commit/8d9cdb0b00218e8450742e29e51f5ce4494f15d6

I flashed a moz-central build to unagi (which is required) and verfied this on marketplace dev.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I tried to purchase an app on the 1.1 latest build, and I get the "Payment canceled" error message. I am also unable to submit logs, because when I enter the debug screen, it jumps right back to the homepage, as if I pressed the back button.
Hi Iulian. It sounds like you haven't pushed payment prefs to your phone: https://webpay.readthedocs.org/en/latest/use_hosted_webpay.html#setting-up-a-b2g-device
Thanks Kumar, my bad. I have pushed the prefs, now I'm able to make a purchase, but I can't get to the MT auth because of the fake payment. Is there any workaround? Thank you!
Flags: needinfo?(kumar.mcmillan)
I tried to verify it on MP-stage app, made a purchase with the  Movistar SIM, entered a new SIM and tried to make a purchase, on the same account. I entered the PIN, clicked Continue, and it remains stuck in the "Waiting for payment to complete..." window.
You can use stage to test this now since the patch has landed there. If you are stuck on the wait screen it probably means we encountered a server error. The only error I see was caused by bug 915325 which is fixed now. Could you try again?
Flags: needinfo?(kumar.mcmillan)
It's working now. MT auth page is displayed after the SIM is changed. Verified as fixed on B2G 1.1 (Unagi) in MP-stage app.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.