duccong / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

The In-app purchase api is returning orderId in decimal value??? #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
1. Purchase any in-app item
2. Log the response from Google play in-app transaction
3. It shows as below :
{
    "notificationId":"87356XXXXXX684814",
    "orderId":"12999763169XXXX758.13774087XXXX934",
    "packageName":"tst.package.name",
    "productId":"p8787p_31908503",
    "purchaseTime":1352692129000,
    "purchaseState":0,
    "purchaseToken":"pswjwhvxxxxxxxsyhlfbxuxpt"
},

While digging more we found that for some orders, Google Play is sending Google 
order number in the orderId param in the order data. and for others, its 
sending <Company Name> order number

Example, in Google Checkout search for "12999763169054705758.1378230753777349" 
it shows order id is #703226545134726. When you go into the order and scroll at 
the end u will see this info:
Google order number: 247953530411389
<Company Name> order number:12999763169054705758.1378230753777349

EXPECTED OUTPUT:

{
    "notificationId":"87356XXXXXX684814",
    "orderId":"12999763169XXXX758",
    "packageName":"tst.package.name",
    "productId":"p8787p_31908503",
    "purchaseTime":1352692129000,
    "purchaseState":0,
    "purchaseToken":"pswjwhvxxxxxxxsyhlfbxuxpt"
},

ACTUAL OUTPUT:

{
    "notificationId":"87356XXXXXX684814",
    "orderId":"12999763169XXXX758.13774087XXXX934",
    "packageName":"tst.package.name",
    "productId":"p8787p_31908503",
    "purchaseTime":1352692129000,
    "purchaseState":0,
    "purchaseToken":"pswjwhvxxxxxxxsyhlfbxuxpt"
},

Original issue reported on code.google.com by m...@sanniv.com on 14 Nov 2012 at 8:16