If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

on stage: Receipt had invalid domain

RESOLVED FIXED in 2013-05-02

Status

Marketplace
Payments/Refunds
P1
normal
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: kumar, Assigned: andym)

Tracking

2013-05-02
x86
Mac OS X
Points:
---

Details

A valid receipt on stage fails with this:

Apr 25 04:19:09 web4.stage.addons.phx1.mozilla.com: [][] z.receipt:INFO Receipt had invalid domain :/data/www/addons.allizom.org/zamboni/services/utils.py:132

The receipt:

{u'detail': u'https://marketplace.allizom.org/purchases/436275',
 u'exp': 1382611323,
 u'iat': 1366886523,
 u'iss': u'https://marketplace.allizom.org',
 u'nbf': 1366886523,
 u'product': {u'storedata': u'id=436275',
              u'url': u'http://yacht.paas.allizom.org'},
 u'reissue': u'https://marketplace.allizom.org/app/private-yacht/purchase/reissue',
 u'typ': u'purchase-receipt',
 u'user': {u'type': u'directed-identifier',
           u'value': u'24591-0201fcc1-bffd-41bf-8ce9-ae39b503de31'},
 u'verify': u'https://receiptcheck-marketplace.allizom.org/verify/'}

On stage:

DOMAIN = 'marketplace.allizom.org'

I guess it's failing because of the verify domain. What did we do to fix this elsewhere?
Assignee: nobody → amckay
Blocks: 775802
Priority: -- → P1
(Assignee)

Comment 1

5 years ago
This is because receipts get verified at two different domains. I'll have to fix the check to cope with that.
(Assignee)

Comment 2

5 years ago
r? https://github.com/andymckay/zamboni/commit/835e8c
(Assignee)

Updated

5 years ago
Target Milestone: --- → 2013-05-02
(Assignee)

Comment 3

4 years ago
https://github.com/mozilla/zamboni/commit/34cfa9
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.