Retrieve micro paiments with fxpay, from privilleged packaged web app
First of all, I make all my tests upon firefox 0S 2.0 simulator
I have a website that is a game webportal.
I made a privilleged packaged app with all requierements. As launch_path I took some "index.html" file and inside this file I wrote all the basic infos and particulary this one in the header:
<meta http-equiv="refresh" content="5;url=http://url10.infinitgame.com?os=ffos">
As far as this, it works OK. Meaning that I can launch my app inside firefox OS desktop and get inside my webportal
So next I packaged the fxpay library as explained in some doc and added it in my game webportal server. I've made everything like the tutorial and it perfectly works with the fake products.
After this I made a "real product" (creating a Bango account, chosing countries, and finally creating real products). And then I turned OFF the fake products. Now I cannot find my product and there is the error message I got:
"using default adapter" main_min.js:10 "using Firefox Marketplace In-App adapter" main_min.js:10 "using custom adapter" main_min.js:10 "receipts fetched from mozApps:" 0 main_min.js:10 "receipts fetched from localStorage:" 0 main_min.js:10 "Number of receipts installed: 0" main_min.js:10 "about to fetch real products for app" "http%3A%2F%2Furl10.infinitgame.com" main_min.js:10 "opening" "GET" "to" "https://marketplace.firefox.com/api/v1/payments/http%3A%2F%2Furl10.infinitgame.com/in-app/?active=1" main_min.js:10 "onloaded" scripts.js:516 "BAD_API_RESPONSE" "status:" 404 "for URL:" "https://marketplace.firefox.com/api/v1/payments/http%3A%2F%2Furl10.infinitgame.com/in-app/?active=1" main_min.js:10
"BAD_API_RESPONSE" "response:" "{"detail":"Not found"}" main_min.js:10 "Error getting products:" "BAD_API_RESPONSE".
I also read online that an app must be published before production payments can be used. But I find a lot of contradictory informations about firefoxOS since the community is quite small.
Thanks for this time & support. Tomy
Svi odgovori (1)
Hi Grimmz,
The main focus of the Firefox OS SUMO Support Forums is to assist end users.
The best place to ask about developer-type questions is on stackoverflow and on b2g and developer mailing lists.
I wish you the best of luck finding a solution!
- Ralph