Closed
Bug 699486
Opened 13 years ago
Closed 13 years ago
Change verify to get the receipt
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect, P1)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
FIXED
6.3.2
People
(Reporter: andy+bugzilla, Assigned: andy+bugzilla)
References
Details
Verify used to send a GET, but its changing to a POST.
"If the verify URL is present, the receiving party may verify it by issuing a POST request to it, where the message body contains the complete receipt"
We'll need to verify the state of the receipt when we get it as well and discuss what else we should be doing on the server.
Assignee | ||
Comment 1•13 years ago
|
||
As per meeting yesterday:
- Crack open the receipt, which will verify the crypto.
- Check the user has purchased and not refunded.
If it works:
- We'll return a 200 status code, {"status": "ok", "receipt": {... the JSON in the receipt }}
If it fails because of refund:
- We'll return a 200 status code, {"status": "refund"}
If it fails because the receipt is tampered with, false, or just plain wrong:
- We'll return a 200 status code, {"status": "invalid"}
If there's some other error:
- We'll return a 500 status code
Assignee: nobody → amckay
Priority: -- → P1
Target Milestone: --- → 6.3.2
Comment 2•13 years ago
|
||
If anything connections take longer than 1 second:
- Send a 503. Think about if we can send a useful retry-after header
Assignee | ||
Comment 3•13 years ago
|
||
https://github.com/mozilla/zamboni/commit/80fe70
We'll need bug 702775 done before we can test.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•