[traceback] Cannot submit a paid app of price 0.00

VERIFIED FIXED in 2013-01-17

Status

Marketplace
Payments/Refunds
P1
normal
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: kumar, Assigned: basta)

Tracking

2013-01-17
x86
Mac OS X
Points:
---

Details

STR
- set an app to paid
- choose $0.00
- add a bank account
- click save

We get this error in solitude:

/bango/premium/: BangoError PRICE_ZERO_FOR_NON_FREE_ACCESS_MODEL: The price cannot be zero when the supplied access model is not 'free'
  File "/data/www/payments-dev.allizom.org/solitude/lib/bango/resources/cached.py", line 48, in obj_create
    resp = getattr(get_client(), self._meta.simple_api)(form.bango_data)

  File "/data/www/payments-dev.allizom.org/solitude/lib/bango/client.py", line 83, in call
    self.is_error(response.responseCode, response.responseMessage)

  File "/data/www/payments-dev.allizom.org/solitude/lib/bango/client.py", line 96, in is_error
    raise BangoError(code, message) 

http://sentry.dmz.phx1.mozilla.com/payments-dev/group/10851/
Assignee: nobody → kumar.mcmillan
Blocks: 775802
Priority: -- → P1
Target Milestone: --- → 2013-01-17

Comment 1

5 years ago
http://sentry.dmz.phx1.mozilla.com/payments-dev/group/10851/

BangoError PRICE_ZERO_FOR_NON_FREE_ACCESS_MODEL: The price cannot be zero when the supplied access model is not 'free'

Comment 2

5 years ago
Zamboni is calling make_premium with the initial price of zero. My guess is if the app is paid but 0.00, we should call UpdateAccessModelFree. We could do all this at the solitude level. We haven't addressed updating the access model yet and changing prices.
If the app is free, we don't need to call MakePremium() at all. We don't need to send free products through Bango's system, we have our own metrics. However, we do need a solitude product + secret for in-app payments to work.
Assignee: kumar.mcmillan → mattbasta
(Assignee)

Updated

5 years ago
Summary: [traceback] Cannot submit a free app with in-app payments → [traceback] Cannot submit a paid app of price 0.00
(Assignee)

Comment 4

5 years ago
https://github.com/mozilla/zamboni/commit/8f7d719f119ee4598fffcadd4ca3a3b5c12e3992

I'll file a bug to add support for the endpoint to keep Solitude in sync with zamboni for the price.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED

Comment 5

5 years ago
Having an app with in-app payments with price to tier worked fine @ https://marketplace-dev.allizom.org/developers/app/test-app-fawn129/payments/
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.