Closed ZacharyFoxx closed 1 year ago
Game still locked even though product information has been included:
I/Unity ( 5258): OuyaUnityPlugin.getReceiptsAsync I/Unity ( 5258): OuyaUnityPlugin.getReceiptsAsync IAP is enabled I/Unity ( 5258): OuyaUnityPlugin: m_test is valid D/b ( 565): requesting receipts D/f ( 565): Getting from URL: http://ouya.cweiske.de/api/v1/games/com.studioevil.syderarcadeouya/purchases?app_id=com.studioevil.syderarcadeouya&auth_token=00702342-0000-1111-2222-c3e1500cafe1 D/HTTP ( 565): Request 75: GET /api/v1/games/com.studioevil.syderarcadeouya/purchases?app_id=com.studioevil.syderarcadeouya&auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 D/HTTP ( 565): Request 76: GET /api/v1/developers/58897b57-010f-48a7-a76f-ef9c433fe9eb/products/?auth_token=00702342-0000-1111-2222-c3e1500cafe1&only=syderarcade_fullgame HTTP/1.1 D/HTTP ( 565): Response 75: GET /api/v1/games/com.studioevil.syderarcadeouya/purchases?app_id=com.studioevil.syderarcadeouya&auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 (status: HTTP/1.1 200 OK) D/HTTP ( 565): Request 77: GET /api/v1/games/com.studioevil.syderarcadeouya/purchases?app_id=com.studioevil.syderarcadeouya&auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 D/s ( 565): [{ D/s ( 565): "key": "MDEyMzQ1Njc4OWFiY2RlZg==", D/s ( 565): "iv": "t3jir1LHpICunvhlM76edQ==", D/s ( 565): "blob": "ewogICAgImtleSI6ICJNREV5TXpRMU5qYzRPV0ZpWTJSbFpnPT0iLAogICAgIml2IjogInQzamlyMUxIcElDdW52aGxNNzZlZFE9PSIsCiAgICAiYmxvYiI6ICJld29nSUNBZ0luQjFjbU5vWVhObGN5STZJRnRkQ24wPSIKfQ==" D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 268 D/f ( 565): received success response D/HTTP ( 565): Response 76: GET /api/v1/developers/58897b57-010f-48a7-a76f-ef9c433fe9eb/products/?auth_token=00702342-0000-1111-2222-c3e1500cafe1&only=syderarcade_fullgame HTTP/1.1 (status: HTTP/1.1 200 OK) D/s ( 565): [{ D/s ( 565): "developerName": "Studio Evil", D/s ( 565): "currency": "EUR", D/s ( 565): "products": [ D/s ( 565): { D/s ( 565): "type": "entitlement", D/s ( 565): "identifier": "syderarcade_fullgame", D/s ( 565): "name": "Unlock full game", D/s ( 565): "description": "Unlock to play all stages", D/s ( 565): "localPrice": 0.99, D/s ( 565): "originalPrice": 0, D/s ( 565): "priceInCents": 0, D/s ( 565): "percentOff": 0, D/s ( 565): "currency": "EUR" D/s ( 565): } D/s ( 565): ] D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 442 D/f ( 565): received success response I/TestOuyaFacade( 5258): ReceiptListener ReceiptListClearListener I/TestOuyaFacade( 5258): ReceiptListener ReceiptListCompleteListener
After the purchase procedure, we have:
D/UserGateway( 565): requesting credit card info D/HTTP ( 565): Response 77: GET /api/v1/games/com.studioevil.syderarcadeouya/purchases?app_id=com.studioevil.syderarcadeouya&auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 (status: HTTP/1.1 200 OK) D/s ( 565): [{ D/s ( 565): "key": "MDEyMzQ1Njc4OWFiY2RlZg==", D/s ( 565): "iv": "t3jir1LHpICunvhlM76edQ==", D/s ( 565): "blob": "ewogICAgImtleSI6ICJNREV5TXpRMU5qYzRPV0ZpWTJSbFpnPT0iLAogICAgIml2IjogInQzamlyMUxIcElDdW52aGxNNzZlZFE9PSIsCiAgICAiYmxvYiI6ICJld29nSUNBZ0luQjFjbU5vWVhObGN5STZJRnRkQ24wPSIKfQ==" D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 268 D/b ( 565): requesting product list D/f ( 565): received success response D/f ( 565): Getting from URL: http://ouya.cweiske.de/api/v1/wallet?auth_token=00702342-0000-1111-2222-c3e1500cafe1 I/TestOuyaFacade( 5258): ReceiptListener ReceiptListClearListener I/TestOuyaFacade( 5258): ReceiptListener ReceiptListCompleteListener D/HTTP ( 565): Request 78: GET /api/v1/wallet?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 D/f ( 565): Getting from URL: http://ouya.cweiske.de/api/v1/developers/58897b57-010f-48a7-a76f-ef9c433fe9eb/products/?auth_token=00702342-0000-1111-2222-c3e1500cafe1&only=syderarcade_fullgame D/HTTP ( 565): Request 79: GET /api/v1/developers/58897b57-010f-48a7-a76f-ef9c433fe9eb/products/?auth_token=00702342-0000-1111-2222-c3e1500cafe1&only=syderarcade_fullgame HTTP/1.1 I/ActivityManager( 339): Displayed tv.ouya/.console.service.iap.ui.IapPurchaseActivity: +105ms D/HTTP ( 565): Response 78: GET /api/v1/wallet?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 (status: HTTP/1.1 200 OK) D/s ( 565): [{ D/s ( 565): "requiresPaymentMethod": false, D/s ( 565): "balance": 42.23, D/s ( 565): "credit_card": null, D/s ( 565): "currency": "EUR" D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 109 D/f ( 565): received success response D/HTTP ( 565): Response 79: GET /api/v1/developers/58897b57-010f-48a7-a76f-ef9c433fe9eb/products/?auth_token=00702342-0000-1111-2222-c3e1500cafe1&only=syderarcade_fullgame HTTP/1.1 (status: HTTP/1.1 200 OK) D/s ( 565): [{ D/s ( 565): "developerName": "Studio Evil", D/s ( 565): "currency": "EUR", D/s ( 565): "products": [ D/s ( 565): { D/s ( 565): "type": "entitlement", D/s ( 565): "identifier": "syderarcade_fullgame", D/s ( 565): "name": "Unlock full game", D/s ( 565): "description": "Unlock to play all stages", D/s ( 565): "localPrice": 0.99, D/s ( 565): "originalPrice": 0, D/s ( 565): "priceInCents": 0, D/s ( 565): "percentOff": 0, D/s ( 565): "currency": "EUR" D/s ( 565): } D/s ( 565): ] D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 442 D/f ( 565): received success response D/l ( 565): Posting to URL: http://ouya.cweiske.de/api/v1/games/com.studioevil.syderarcadeouya/purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 D/HTTP ( 565): Request 80: POST /api/v1/games/com.studioevil.syderarcadeouya/purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 D/HTTP ( 565): Response 80: POST /api/v1/games/com.studioevil.syderarcadeouya/purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 (status: HTTP/1.1 200 OK) V/HTTP ( 565): Response compressed len: 545 D/s ( 565): [{ D/s ( 565): "key": "MDEyMzQ1Njc4OWFiY2RlZg==", D/s ( 565): "iv": "t3jir1LHpICunvhlM76edQ==", D/s ( 565): "blob": "ewogICAgImtleSI6ICJNREV5TXpRMU5qYzRPV0ZpWTJSbFpnPT0iLAogICAgIml2IjogInQzamlyMUxIcElDdW52aGxNNzZlZFE9PSIsCiAgICAiYmxvYiI6ICJld29nSUNBZ0luUjVjR1VpT2lBaVpXNTBhWFJzWlcxbGJuUWlMQW9nSUNBZ0ltbGtaVzUwYVdacFpYSWlPaUFpYzNsa1pYSmhjbU5oWkdWZlpuVnNiR2RoYldVaUxBb2dJQ0FnSW01aGJXVWlPaUFpVlc1c2IyTnJJR1oxYkd3Z1oyRnRaU0lzQ2lBZ0lDQWlaR1Z6WTNKcGNIUnBiMjRpT2lBaVZXNXNiMk5ySUhSdklIQnNZWGtnWVd4c0lITjBZV2RsY3lJc0NpQWdJQ0FpYkc5allXeFFjbWxqWlNJNklEQXVPVGtzQ2lBZ0lDQWliM0pwWjJsdVlXeFFjbWxqWlNJNklEQXNDaUFnSUNBaWNISnBZMlZKYmtObGJuUnpJam9nTUN3S0lDQWdJQ0p3WlhKalpXNTBUMlptSWpvZ01Dd0tJQ0FnSUNKamRYSnlaVzVqZVNJNklDSkZWVklpTEFvZ0lDQWdJblYxYVdRaU9pQWlZekU0WTJNNVlURTFOR1UzTldVMU15SUtmUT09Igp9" D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 756 D/f ( 565): received success response D/f ( 565): Getting from URL: http://ouya.cweiske.de/api/v1/premium_purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 D/HTTP ( 565): Request 81: GET /api/v1/premium_purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 D/HTTP ( 565): Response 81: GET /api/v1/premium_purchases?auth_token=00702342-0000-1111-2222-c3e1500cafe1 HTTP/1.1 (status: HTTP/1.1 200 OK) D/s ( 565): [{ D/s ( 565): "games": [ D/s ( 565): ] D/s ( 565): } D/s ( 565): ] V/Http ( 565): Response uncompressed len: 25 D/f ( 565): received success response I/Unity ( 5258): ==================================================
Updating the product section:
"Name" attribute now matches the name of the option in the game menu.
Attributes "localPrice" and "originalPrice" with the same value.
I've merged it and adjusted the commit message to clarify what the commit does in the first line. "Update com.studioevil.syderarcadeouya.json" is not descriptive enough for me.
Related to #173.
Game still locked even though product information has been included:
After the purchase procedure, we have:
Updating the product section:
"Name" attribute now matches the name of the option in the game menu.
Attributes "localPrice" and "originalPrice" with the same value.