{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxpay/issues/112","labels_url":"https://api.github.com/repos/mozilla/fxpay/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxpay/issues/112/comments","events_url":"https://api.github.com/repos/mozilla/fxpay/issues/112/events","html_url":"https://github.com/mozilla/fxpay/issues/112","id":80923694,"number":112,"title":"fxpay \"XHR error event\" error","user":{"login":"rob-baker","id":3264332,"avatar_url":"https://avatars.githubusercontent.com/u/3264332?v=3","gravatar_id":"","url":"https://api.github.com/users/rob-baker","html_url":"https://github.com/rob-baker","followers_url":"https://api.github.com/users/rob-baker/followers","following_url":"https://api.github.com/users/rob-baker/following{/other_user}","gists_url":"https://api.github.com/users/rob-baker/gists{/gist_id}","starred_url":"https://api.github.com/users/rob-baker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rob-baker/subscriptions","organizations_url":"https://api.github.com/users/rob-baker/orgs","repos_url":"https://api.github.com/users/rob-baker/repos","events_url":"https://api.github.com/users/rob-baker/events{/privacy}","received_events_url":"https://api.github.com/users/rob-baker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-26T11:38:16Z","updated_at":"2015-05-27T00:06:54Z","closed_at":"2015-05-26T20:09:42Z","body":"I have added FireFox Marketplace in-app payments to my game pathuku using fxPay.\r\n\r\nEverything seems to be working when i use the fakeProducts setting below:\r\n\r\n    fxpay.configure({fakeProducts: true});\r\n\r\nWhen i try to use fxPay in Live i get the following in my console:\r\n\r\n\r\n    ok\r\n    23:30:46.305 \"opening\" \"GET\" \"to\" \"https://marketplace.firefox.com/api/v1/payments/https%3A%2F%2Fwww.pathuku.com/in-app/?active=1\"1 fxpay.min.js:1:476\r\n    \r\n    error\r\n    23:30:46.681 \"XHR error event:\" error { target: XMLHttpRequest, isTrusted: true, lengthComputable: false, loaded: 0, total: 0, currentTarget: XMLHttpRequest, eventPhase: 2, bubbles: false, cancelable: false, defaultPrevented: false, timeStamp: 1432593046679000 }1 fxpay.min.js:1:4078\r\n    \r\n    error\r\n    23:30:46.690 \"Error getting products:ApiRequestError: received XHR error for path: /payments/https%3A%2F%2Fwww.pathuku.com/in-app/?active=1\"1 main.js:1:10765\r\n     _eo/b.e5.fxpay.checkForPurcs/<() main.js:1\r\n    z() fxpay.min.js:1\r\n    A() fxpay.min.js:1\r\n    x() fxpay.min.js:1\r\n    t() fxpay.min.js:1\r\n    j() fxpay.min.js:1\r\n\r\nA http OPTIONS request is made to \r\n    https://marketplace.firefox.com/api/v1/payments/https%3A%2F%2Fwww.pathuku.com/in-app/?active=1\r\n\r\nThe url seems to be working, but i don't understand why only a OPTIONS request is being made?\r\n\r\nMy game urls are\r\nhttps://marketplace.firefox.com/app/pathuku/\r\nhttps://www.pathuku.com/manifest.webapp\r\nhttps://www.pathuku.com\r\n\r\nDo i need a \"type\" in my manifest? Ideally i want the in-app payments to work from any platform not just FireFox OS.\r\n\r\nAny help would be very welcome\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/fxpay/issues/comments/105701282","html_url":"https://github.com/mozilla/fxpay/issues/112#issuecomment-105701282","issue_url":"https://api.github.com/repos/mozilla/fxpay/issues/112","id":105701282,"user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T00:06:54Z","updated_at":"2015-05-27T00:06:54Z","body":"Ah, yeah, prototype hacks always create confusing errors. Thanks for the issue report, let us know if you run into anything else."}}