Closed Bug 961794 Opened 11 years ago Closed 11 years ago

Add support for the `iccInfo` property added to the mozPaymentProvider API

Categories

(Marketplace Graveyard :: Payments/Refunds, defect)

Avenir
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2014-01-28

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

Attachments

(2 files)

Before Bug 938993 lands we need to make sure that the server side supports the API changes and it still keeps working with old API versions.
Component: DOM: Device Interfaces → Payments/Refunds
Product: Core → Marketplace
Version: unspecified → Avenir
Assignee: nobody → ferjmoreno
Attached file v1 (deleted) —
Kumar, these changes are based on the platform patch proposed for Bug 938993. Basically, I removed the .iccIds, .mcc and .mnc properties from the mozPaymentProvider API and introduced a new iccInfo object containing all this values indexed by payment service ID. This patch in WebPay is just to make sure that we don't break the server flow when we land the client changes. The algorithm described in [1] (that I need to rewrite) still needs to be implemented, I guess, as part of Bug 942361.

I didn't find any reference to .mcc or .mnc so I guess that these values are being accessed by Bango and so we also need a patch on their side to make sure that the client changes don't break their flow.

Unfortunately, I cannot test this patch locally with the whole WebPay flow :(.

Would you mind taking a look at the code and testing the patch, please?

Thanks!
Attachment #8362991 - Flags: feedback?(kumar.mcmillan)
Comment on attachment 8362991 [details]
v1

Patch merged: https://github.com/mozilla/webpay/commit/9a95c6d20e7e40beff5f8ba74bb048cf5db918d3 Thanks again.
Attachment #8362991 - Flags: feedback?(kumar.mcmillan) → feedback+
For QA, these are the STR:

- flash Firefox OS version >= 1.4 on a device with a SIM (check the console for this log message when beginning a payment: 'mozPaymentProvider.iccInfo?')
- start a payment
- when it says confirm your mobile number, proceed until you see a buy screen
- shut down the device
- remove or swap the SIM
- restart and begin a new payment

Expected: you should be asked to confirm your mobile number *again* since you inserted a new SIM.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014-01-28
I have flashed my Inari with FF OS 1.4 but when I tap on the price button to buy an app, nothing happens.
Do you want me to file a new bug with this issue? Thank you.
Log ID: 9fd99
Flags: needinfo?(kumar.mcmillan)
You need to wait for bug 938993 to land in mozilla-central.
Flags: needinfo?(kumar.mcmillan)
Actually, it should work even without bug 938993. Any errors in the logcat?
Flags: needinfo?(iulian.timis)
Attached file paymet14 logcat.txt (deleted) —
I have attached the logcat for the issue described above.
Flags: needinfo?(iulian.timis)
This looks like bug 963582
Blocks: 1037662
No longer blocks: 1037662
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: