Make sure editors can make in-app purchases as long as the app is pending approval

RESOLVED WONTFIX

Status

Marketplace
Reviewer Tools
P3
normal
RESOLVED WONTFIX
6 years ago
3 years ago

People

(Reporter: krupa, Unassigned)

Tracking

Points:
---

Details

(Reporter)

Description

6 years ago
Make sure editors can make in-app purchases as long as the app is pending approval. However, we should revoke this privilege once the app is made public.
Andy, Kumar - what needs to happen to make this so?
When a developer sets up in-app payments they get a key from solitude here: https://github.com/mozilla/solitude/blob/master/lib/sellers/models.py#L55

When the app is in review we could put that key into some kind of forced simulation mode. We don't have that mode yet, we only have an *explicit* simulation mode which is declared in the JWT by the developer (bug 834410). 

In this case, we want the editors to control simulated payments. We could do a forced simulation by adding to the SellerProduct model. In webpay, we could detect when a key is in this mode right around here: https://github.com/mozilla/webpay/blob/master/webpay/pay/views.py#L116

When the app is published we could automatically switch off the forced simulation mode for the payment key.
Blocks: 775802
Priority: -- → P3
Version: 1.0 → 1.2

Comment 3

3 years ago
At this time reviewers don't test in-app payments, although the code is theoretically there.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.