This API will allow the purchase of product, price, app combination as created in bug 944487. The API will - check the domain matches that of an app - check that we've got a valid product, price combination - check that the app is public etc. - start the transaction in the marketplace - creates the JWT - returns the JWT
Setting priority, will ping teams involved when are ready to go on this.
This will be very similar to the /webpay/prepare API http://firefox-marketplace-api.readthedocs.org/en/latest/topics/payment.html#preparing-payment As for checking the domain of the app, not sure how we'll do that. If it gets complicated let's break that into a separate bug.
To be clear, this API should accept a product ID that was created in bug 956334.
The API should be public; it will be called from an app where we have no Marketplace/Webpay session. It could be called from a packaged app where there is no server.
This is completed in https://bugzilla.mozilla.org/show_bug.cgi?id=980092