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™ Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 7
Registered: ‎01-29-2013
My Device: Bold
My Carrier: MTS

Problem with in-app purchase after upgrade OS to 2.1.0.1056

[ Edited ]

Hello!

 

Before upgrade OS in-app purchase working correctly. But after upgrade it's not working.

 

After this code pendingIntent == null and request code == 6 (RESULT_ERROR)

Bundle request = makeRequestBundle("REQUEST_PURCHASE");
request.putString(Consts.BILLING_REQUEST_ITEM_ID, mProductId);
if (mDeveloperPayload != null) {
	request.putString(Consts.BILLING_REQUEST_DEVELOPER_PAYLOAD, mDeveloperPayload);
}

Bundle response = mService.sendBillingRequest(request);
PendingIntent pendingIntent
		= response.getParcelable(Consts.BILLING_RESPONSE_PURCHASE_INTENT);
if (pendingIntent == null) {
	MyLog.e("Error in REQUEST_PURCHASE: " + response.get(Consts.BILLING_RESPONSE_RESPONSE_CODE));
	return Consts.BILLING_RESPONSE_INVALID_REQUEST_ID;
}

 What has changed in the new version that stopped working purchase? On BB10 simulator purchases working correctly and on playbook with old version.

 

Please, help with solution.

 

Best regards!

Developer
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700
My Carrier: Vodafone

Re: Problem with in-app purchase after upgrade OS to 2.1.0.1056

Did you find a solution?  I also get this error on the PlayBook, the response bundle is:

 

[{REQUEST_ID=-1, RESPONSE_CODE=6}]

 

 

New Contributor
Posts: 7
Registered: ‎01-29-2013
My Device: Bold
My Carrier: MTS

Re: Problem with in-app purchase after upgrade OS to 2.1.0.1056

Sorry.

 

Topic has wrong name.

Upgrade OS version was 2.1.0.1526.

 

Solution not find. Help please.

 

Best regards!

Highlighted
Developer
Posts: 122
Registered: ‎07-26-2008
My Device: 8320, 9500, 9700
My Carrier: Vodafone

Re: Problem with in-app purchase after upgrade OS to 2.1.0.1056

[ Edited ]

So, FWIW, in my case the response code 6 was caused by me attempting to purchase the product on a PlayBook registered to a BlackBerry ID with the same email address as my vendor account.  

 

When I added an additional sandbox user with a different BlackBerry ID and wiped my PlayBook and set it up with the new ID it all works correctly (with 2.1.0.1526).