Closed
Bug 777007
Opened 12 years ago
Closed 12 years ago
Process refund for purchased B2G app
Categories
(Marketplace Graveyard :: Payments/Refunds, defect, P1)
Tracking
(Not tracked)
RESOLVED
WONTFIX
2012-09-13
People
(Reporter: kumar, Assigned: andy+bugzilla)
References
Details
To initiate a refund for a B2G app, Marketplace should call nav.pay() with a refund request. Spec: https://wiki.mozilla.org/WebAPI/WebPayment#Refunds Marketplace will pass in its own chargeback URL as part of the request. When a refund notification is received from BlueVia, all normal receipt processing should take place (receipt issued, tracked, etc), then Marketplace will notify the developer by posting to the stored chargeback URL on record for that developer. That is, the chargeback URL the developer signed up with through the developer pages.
Reporter | ||
Updated•12 years ago
|
Blocks: marketplace-payments
Reporter | ||
Comment 1•12 years ago
|
||
Notifying the dev through a chargeback URL is optional since they might not have set up that URL. We can probably punt on notifications to keep this simple.
Reporter | ||
Updated•12 years ago
|
Priority: -- → P1
Reporter | ||
Comment 2•12 years ago
|
||
This is how nav.pay() is currently implemented for purchases: https://github.com/kumar303/zamboni/commit/eb3cbf3b We'll need to add a similar frontend/backend dance on mkt's purchase history page when the user clicks 'refund.' If it's easier, let's split up bugs for frontend/backend. The frontend will call nav.pay() according to spec (see link above). Like purchasing, it will need to poll to wait for the chargeback notification. The chargeback notification will need to verify the JWT signature and process the refund (invalidate receipt, etc).
Reporter | ||
Comment 3•12 years ago
|
||
well, the polling might be different in the refund case. When the user clicks the refund button on our site maybe we just say "your refund is pending..."
Reporter | ||
Comment 4•12 years ago
|
||
For reference, this is how the app install postback URL was implemented https://github.com/kumar303/zamboni/commit/04aa011e#L5R80 The chargeback is pretty much the same thing just with refund processing.
Updated•12 years ago
|
Assignee: nobody → amckay
Target Milestone: --- → 2012-09-13
Assignee | ||
Comment 5•12 years ago
|
||
Back end: https://github.com/mozilla/zamboni/commit/aacaa0
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•