Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Contributor
dhatchina
Posts: 11
Registered: ‎11-28-2012
My Device: Blackberry Playbook
Accepted Solution

Android - Inapp purchase response

Hi, I recently run my android project with inapp purchase in BB10 device. In blackberry developer portal, they cleary mentioned, we can use the same android inapp payment procedures.  I had a doubt, json response which come android market and Blackberry app world are same or different?. Is the terminology change like "ItemId" reflect in json Response?  Is i need to change any code part to incorporate inapp purchase? 

 

Response Coming from Android market look like,

{ "nonce" : 1836535032137741465,
  "orders" :
    [{ "notificationId" : "android.test.purchased",
       "orderId" : "transactionId.android.test.purchased",
       "packageName" : "com.example.dungeons",
       "productId" : "android.test.purchased",
       "developerPayload" : "bGoa+V7g/yqDXvKRqq+JTFn4uQZbPiQJo4pf9RzJ",
       "purchaseTime" : 1290114783411,
       "purchaseState" : 0,
       "purchaseToken" : "rojeslcdyyiapnqcynkjyyjh" }]
}

Can anybody reply, how the blackberry response will be? 

 

Thanks

Please use plain text.
New Contributor
winsonssh
Posts: 6
Registered: ‎01-05-2013
My Device: BlackBerry Playbook

Re: Android - Inapp purchase response

Support. Anyone tried Blackberry in-app in Android runtime?

Please use plain text.
New Contributor
Corvid
Posts: 7
Registered: ‎07-05-2011
My Device: 9700

Re: Android - Inapp purchase response

Bump!

I am interested in this as well

Please use plain text.
Retired
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Android - Inapp purchase response

Hey everyone,

 

Here is the information on In App Payments: http://developer.blackberry.com/android/apisupport/apisupport_inapp_payments_support.html

 

Hopefully that provides the details on what you are looking for.

 

Cheers,

 

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
New Contributor
Corvid
Posts: 7
Registered: ‎07-05-2011
My Device: 9700

Re: Android - Inapp purchase response

Actually I already tried to port my app and nothing happen when I press purchase button. Is that because of response coming from Android market are different from blackberry?

Please use plain text.
Retired
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: Android - Inapp purchase response

Yes. You would have to have your application in App World with your in app purchases registered in the vendor portal. There is a sandbox you can test the purchases with. This information should be in the link I provided. 

 

Hopefully that will help you out.

 

Cheers,

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
Contributor
dhatchina
Posts: 11
Registered: ‎11-28-2012
My Device: Blackberry Playbook

Re: Android - Inapp purchase response

Thanks for reply, My question is, how the response will be? Json response is same as android or any terminology ((i.e) itemId) difference in the response. I just want to change the code and test in sandbox mode. 

 

Please help. Thanks in advance.

Please use plain text.
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: Android - Inapp purchase response

The response should be the same. From the client side the only thing you should need to be aware of is that the response will not be signed, so if you check for this you will need to disregard when testing on a BlackBerry device:
http://developer.blackberry.com/android/apisupport/apisupport_inapp_payments_support.html

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
dhatchina
Posts: 11
Registered: ‎11-28-2012
My Device: Blackberry Playbook

Re: Android - Inapp purchase response

[ Edited ]

Thanks for reply, I uploaded the draft application, added inapp item and downloaded app from app world using tester account. In code i removed signature verfication part, but nothing happen when click on buy button. Inapp purchase is working fine with android market. My inapp purchase code is same as inapp purchase sample application in android developer site and i'm using android inapp billing Version 2. Now the current inapp billing version is 3, Which version i need to use? Any sample code is there?

 

Thanks.

Please use plain text.
New Contributor
Corvid
Posts: 7
Registered: ‎07-05-2011
My Device: 9700

Re: Android - Inapp purchase response

Hey I got the same!

nothing happen when I click purchase button.

Please use plain text.