Forum ActionScript 3.0 PlayerIO redemption failed. Error: Invalid 'inapp_signature'

Problems and discussions relating to ActionScript 3.0 here.

PlayerIO redemption failed. Error: Invalid 'inapp_signature'

Postby btafel » May 20th, 2014, 7:27 am

Hi, I've been trying to use Google Play In-App purchases with the method client_user.payVault.usePaymentInfo but I'm always getting the same error.

The purchase to Google Play blling system (v3) is perfectly done (using Freshplanet ANE https://github.com/freshplanet/ANE-In-App-Purchase/) as I'm getting the correct response from Google.

It called my attention that I can only use "googleplayv2" as the provider for usePaymentInfo but I'm using version 3 of the billing system. Maybe that is the problem?

This is the response from Google when I make the purchase:

Code: Select all
05-20 03:07:10.534: D/IabHelper(4685): Extras: Bundle[{INAPP_PURCHASE_DATA={"orderId":"12999763169054705758.1374434395869810","packageName":"air.UsingANE","productId":"coins600","purchaseTime":1400566134332,"purchaseState":0,"purchaseToken":"nfekffffaeboecjijgnfpdmp.AO-J1OxMPm52j9b4Z5nJCn_jltq2UpCNazhvT3pSmz0mp0biu1pKA5pbSckI0-Pzw8Cay7LkvYFrUSZlEU3O6WyIKKhqHD-i9JWw-Q2WlVmr05tH3xGtN-E"}, INAPP_DATA_SIGNATURE=a0PLeED13St9R2y9F6yKe3qEq/34qKy69gd5mWRu0LCR4K6lCQhfaCLs+kK9qWKwFkC4257S1jD+jNCZVlMcz56f1wU4pfmOzp+PT6hwb5J4KS73MbOT8JmWxvejmcAYVVLq8/5q8BHoD20y8WZv5R48ssKhRqHnrcFWFk5TBcFoCbsAqOLPTH/WUUTP/AOU+fvbRs3AFu+E2Azg8bk+BpxvLKGhrmlKJYUTRUZDwkLbvPSytpQZEs0BnUR3eFae3DqT29i/COoZ64nKHjaveRTzJV3/i05OYn/wagrdU0NpnQlAO69RhO8TqOh+xr4/JxGOisQ84yJAznIaK5ys+Q==, RESPONSE_CODE=0}]


And this is how i submit it to Yahoo:

Code: Select all
client_user.payVault.usePaymentInfo("googleplayv2",
   {inapp_signed_data:"{\"orderId\":\"12999763169054705758.1374434395869810\",\"packageName\":\"air.UsingANE\",\"productId\":\"coins600\",\"purchaseTime\":1400566134332,\"purchaseState\":0,\"purchaseToken\":\"nfekffffaeboecjijgnfpdmp.AO-J1OxMPm52j9b4Z5nJCn_jltq2UpCNazhvT3pSmz0mp0biu1pKA5pbSckI0-Pzw8Cay7LkvYFrUSZlEU3O6WyIKKhqHD-i9JWw-Q2WlVmr05tH3xGtN-E\"}",
    inapp_signature:"a0PLeED13St9R2y9F6yKe3qEq/34qKy69gd5mWRu0LCR4K6lCQhfaCLs+kK9qWKwFkC4257S1jD+jNCZVlMcz56f1wU4pfmOzp+PT6hwb5J4KS73MbOT8JmWxvejmcAYVVLq8/5q8BHoD20y8WZv5R48ssKhRqHnrcFWFk5TBcFoCbsAqOLPTH/WUUTP/AOU+fvbRs3AFu+E2Azg8bk+BpxvLKGhrmlKJYUTRUZDwkLbvPSytpQZEs0BnUR3eFae3DqT29i/COoZ64nKHjaveRTzJV3/i05OYn/wagrdU0NpnQlAO69RhO8TqOh+xr4/JxGOisQ84yJAznIaK5ys+Q=="},
                              
         function(info:Object):void{
            trace("PlayerIO redemption succeeded. " + info.success);
         },
         //Error handler
         function(e:PlayerIOError):void{
            trace("PlayerIO redemption failed. " +  e);
         }
   
   );


And this is the response:
Code: Select all
PlayerIO redemption failed. Error: Invalid 'inapp_signature', doesn't match 'inapp_signed_data'.


Thanks for your help.
btafel
 
Posts: 7
Joined: April 2nd, 2014, 12:32 pm

Re: PlayerIO redemption failed. Error: Invalid 'inapp_signat

Postby btafel » May 20th, 2014, 4:42 pm

RESOLVED! The problem was on the RSA key provided at the PayVault settings page.

Now it works smoothly, even using googleplayv2 as provider (when I'm actually using v3).
btafel
 
Posts: 7
Joined: April 2nd, 2014, 12:32 pm


Return to ActionScript 3.0



cron