Closed Bug 1066844 Opened 10 years ago Closed 9 years ago

For in-app products with price=$0.00, prompt install when the user clicks on the Buy button.

Categories

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

x86
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

VERIFIED FIXED
2015-03-17

People

(Reporter: krupa.mozbugs, Assigned: scolville)

References

Details

(Whiteboard: [qa+])

If an in-app product has price set to $0.00, then we should just prompt install when the user clicks on the Buy button.

from kumar:
"krupa: sounds like a bug to file but one thing we'd need to do is actually validate the purchase somehow, like, ping marketplace to make sure the product is really $0 rather than someone monkeying with the javascript..

maybe we need to introduce a "this is free, you may proceed" page on webpay


or perhaps we can adjust the initial API response when starting the purchase to indicate freeness

we'll definitely need to hit the API to get a receipt"
moving this to the v2 tracker
Blocks: 1058271
No longer blocks: 944480
Priority: -- → P4
Bumping up, this just hit digitarald.
Priority: P4 → P2
Assignee: nobody → scolville
If there isn't a simple fix here, the other alternative is to hide $0.00 from the developer pages.
Depends on: 1138609
The technical fix is in bug 1138609.

To test this we need to make sure:

* There's no general payment regressions for $0 paid app and other paid apps.
* Buying a free in-app product and other paid in-app content works see a test app here: https://marketplace.allizom.org/app/fxpay-inapp-demo?src=search or you can use this directly from the desktop: http://fxpay.muffinresear.ch/
* Check receipts are re-called when the page is refreshed (note receipt restoration across device or if localStorage is cleared - there's a separate bug for that)

The flow should be (for logged out)

* Purchase free in-app product.
* You're asked to sign-in.
* Once signed in the purchase completes.

For logged-in:

* Purchase free in-app product.
* You're told you're logged-in as foo - you choose to sign-out and sign in as a different user.
* Once signed in the purchase completes.
Status: NEW → ASSIGNED
Target Milestone: --- → 2015-03-17
Whiteboard: [qa+]
I'll update this bug when it's on stage. Should be later today post tag.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
This is on stage. I've also fixed a small bug in the demo app that affected the receipt restoration on refreshing the app page.
Verified following the steps from comment 4
Logged-out: http://screencast.com/t/NmzxRaiA

I'm not able to test the second flow, as once I have logged in and purchased once I can't no longer re-purchase the same 0.00$ product. 
Stuart To you have any solution for this?
Flags: needinfo?(scolville)
(In reply to Madalin Cotetiu from comment #7)
> Verified following the steps from comment 4
> Logged-out: http://screencast.com/t/NmzxRaiA
> 
> I'm not able to test the second flow, as once I have logged in and purchased
> once I can't no longer re-purchase the same 0.00$ product. 
> Stuart To you have any solution for this?

Use a different browser? Or you could clear the local receipt storage with localStorage.clear();
Flags: needinfo?(scolville)
I have also verified the second flow: http://screencast.com/t/s6fiVkPghKX
Closing bug.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.