If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Payment Service

Reply
New Contributor
awillemot
Posts: 2
Registered: ‎02-08-2013
My Device: BB10 Dev Alpha A & BlackBerry Z10
My Carrier: Free

"Calling application is not permitted to access this information"

[ Edited ]

Hi everyone,

 

I'm working on Native C++ ports of several games of our company, from Android to BlackBerry 10. So far everything goes pretty smooth and well. However I'm facing a few issues that annoy me as hell for days.

I need to call paymentservice_get_price()  ( http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_re... ) to fetch the in-app items actual price and update the appropriate information in the game. But everytime I call that function, the next paymentservice_event_get_response_code(event)returns a failure value. A call to paymentservice_event_get_error_id(event) returns then a value of 3, withpaymentservice_event_get_error_text stating that strange "Calling application is not permitted to access this information" .

 

I tried the same in local mode - paymentservice_set_connection_mode(true) - and I got the correct callback values, except the price value was obviously wrong as it wasn't fetched from BlackBerry World.

 

I tried on a BlackBerry Dev Alpha A with SDK 10.0.9.1673, then on a retail BlackBerry Z10 with SDK 10.0.9.2372. It didn't work on both models.

 

I uploaded a Draft application on my Vendor portal and downloaded it in Sandbox mode onto the BlackBerry Z10, hoping that getting the app from BlackBerry World would mean it would be permitted to fetch anything from it. It didn't work either.

 

At this point, I'm kind of lost. I really need to get my in-app item prizes from the BlackBerry World server. What else could be wrong ?

 

Thanks in advance for your help.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: "Calling application is not permitted to access this information"

What values do you pass into the call? Are you using Content ID, SKU or both? 

Does the virtual good exist in the vendor portal?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
guru2000at
Posts: 101
Registered: ‎02-25-2011
My Device: Playbook, q5, z10
My Carrier: TM

Re: "Calling application is not permitted to access this information"

i have the same issue.

i provide both: virtual good id and sku

but i also tried:

"", sku

and

virtual good id, ""

 

________________
mappau Dev Team
blackberry@mappau.com
twitter: mappau
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: "Calling application is not permitted to access this information"


guru2000at wrote:

i have the same issue.

i provide both: virtual good id and sku

but i also tried:

"", sku

and

virtual good id, ""

 


How was your application installed (sideloaded, downloaded from BlackBerry World etc)?

Have you debugged your application to verify that the values expected to be set for virtual good ID and SKU are actually being passed?

What platform have you used to create your application?

Which device and OS are you using for testing?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
guru2000at
Posts: 101
Registered: ‎02-25-2011
My Device: Playbook, q5, z10
My Carrier: TM

Re: "Calling application is not permitted to access this information"

How was your application installed (sideloaded, downloaded from BlackBerry World etc)?

- sideloaded via ide / debug and release build

 

Have you debugged your application to verify that the values expected to be set for virtual good ID and SKU are actually being passed?

yes, values are fine

 

What platform have you used to create your application?

Momentics:

Version: 10.1.0

Build id: v201302012246

on OSX 10.7

Cascades & c++

 

Which device and OS are you using for testing?

Z10 (Model: STL100-2) with 10.0.9.2372

________________
mappau Dev Team
blackberry@mappau.com
twitter: mappau
Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: "Calling application is not permitted to access this information"


guru2000at wrote:

How was your application installed (sideloaded, downloaded from BlackBerry World etc)?

- sideloaded via ide / debug and release build


In order to communicate with BlackBerry World your app must be installed via BlackBerry World, sideloading would explain why you are receiving this error. If you would like to test purchases you can either test locally or download from your application sandbox:

http://devblog.blackberry.com/2013/01/blackberry-payment-services-sandbox/

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
guru2000at
Posts: 101
Registered: ‎02-25-2011
My Device: Playbook, q5, z10
My Carrier: TM

Re: "Calling application is not permitted to access this information"

thx for the information. i was not sure, if it is connected to sideloadling the application or not

________________
mappau Dev Team
blackberry@mappau.com
twitter: mappau
Please use plain text.