Closed Bug 977764 Opened 8 years ago Closed 8 years ago

Insert some data about the in-app payment into the receipt

Categories

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

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2014-06-10

People

(Reporter: andy+bugzilla, Assigned: kumar)

References

Details

(Whiteboard: [qa-])

If a payment is for an in-app purchase, then we should insert some data into the receipt. We've got the storedata field where we can insert as much as we want as a string into the JSON. So let's add it in there.

https://github.com/mozilla/zamboni/blob/master/mkt/receipts/utils.py#L24

Then when the receipt is verified, it will check the app and the in-app payment id to make sure its valid.
Priority: -- → P2
https://github.com/mozilla/zamboni/blob/master/mkt/receipts/utils.py#L24

Add:

inapp_id: inapp.pk
transaction_id: <transaction id>
Assignee: nobody → jkerim
Assignee: jkerim → kumar.mcmillan
Instead of transaction_id use contribution_uuid
Store in the storedata as a query string
We have in-app receipts as of this merge: https://github.com/mozilla/zamboni/pull/2126

There is a new storedata parameter of contrib=123 where the ID is for a contribution object with a foreign key to inapp_products.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014-06-10
Can you please add some STRs or mark it as [qa-] ?
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.