Closed Bug 703117 Opened 13 years ago Closed 13 years ago

Implement frontend for consumer in-app payment

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kumar, Assigned: potch)

References

Details

The Firefox Market should serve a JavaScript file that externally hosted apps can include to make in-app purchases, something like this:

<script src="https://static-cdn.market.mozilla.net/en-US/media/js/fxmarket-min.js"></script>
<script type="text/javascript">

// when user clicks a Buy button:
fxmarket.buy(...)

</script>

Spec: https://github.com/mozilla/apps-payment-server/blob/master/DESIGN.md
Prototype: https://github.com/mozilla/apps-payment-server/blob/master/paymentserver/pay/static/js/fxmarket.js

As a first iteration this should spawn a buy flow process similar to buying an app or addon from AMO.  This should negotiate the browser ID login.
Blocks: 698116
Priority: -- → P1
Summary: Serve frontend JS for apps to make in-app purchases with: fxmarket.buy() → Implement frontend for consumer in-app payment
Problems to solve:
- JS needs to be robust enough to work in all WebRTs
- The JS will be invoked from the app domain but needs to talk to the marketplace domain (jsonp? etc?)
- We need to protect the display of "product Foobar at price $1.99" so that it cannot be tampered with when shown to the consumer
UI flow will be designed in bug 734512
Assignee: nobody → thepotch
Target Milestone: --- → 6.5.0
Blocks: 742056
mocks are in bug 742056
Target Milestone: 6.5.0 → 6.5.1
This is all done-like.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.