Closed Bug 1027710 Opened 10 years ago Closed 10 years ago

fxpay: list all developer in-app products

Categories

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

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2014-07-29

People

(Reporter: kumar, Assigned: kumar)

References

Details

(Whiteboard: [qa-])

Instead of hard coding product IDs into code, it would be a nice enhancement if you could use fxpay.js to list all active products. 

Pseudo code:

fxpay.init({
  appId: myAppId,
  ...
});

fxpay.fetchProducts(function(error, info) {
  if (error) {
    throw error;
  }

  // Set up the UI so the product can be purchased...
  // var $newProduct = ...

  $newProduct.click(function() {
    fxpay.purchase(info.productId, ...);
  });
});

I think the API already supports this but might need some tweaks.
Blocks: 956358
Priority: -- → P4
Priority: P4 → P2
Assignee: nobody → kumar.mcmillan
API patch: https://github.com/mozilla/zamboni/pull/2337
Whiteboard: [qa-]
fxpay patch: https://github.com/mozilla/fxpay/pull/21
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2014-07-29
You need to log in before you can comment on or make changes to this bug.