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

Java Development

Reply
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

UserCancelException while implementing In App purchase

I am developing an application for in app purchase using sandbox testing.
I am able to download the app properly and have written code as per given here

I am getting userCancelException even if I am not kind of cancelling anything.
Please help me for the same.
Thanks.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: UserCancelException while implementing In App purchase

Could you post the code snippet that is resulting in the UserCancelException?

 

Please also provide details on your environment used for testing:

1) Device model and OS

2) Does the device have a valid BlackBerry Data Plan?

3) SDK version used to create the app

4) The version of Payment Service SDK used

Garett
@garettBeuk
--
Goodbye everybody!
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: UserCancelException while implementing In App purchase

Thanks Garett,

 

Details are :

 

Device is : 9800,9790

Os : 6 and 7

Java SDK Version :  5.0.0.36

Payment Service SDK : 1.8

 

Is SIM or BB data plan is necessary for testing inapp ??
I think the paymentis done using payment details associated with BB ID... correct me if I am wrong..
I have not tested inapp with SIM or data plan ...
Is this the issue ???

 

Please rply.

Thanks in Advance.

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: UserCancelException while implementing In App purchase

Are you testing on a real device or simulator? What is the version of BlackBerry World on the device being used?

 

Depending on the version of BlackBerry World you may be fine with just WiFi.

 

Also, please provide the full OS version for the device being used.

Garett
@garettBeuk
--
Goodbye everybody!
New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: UserCancelException while implementing In App purchase

Hii Garett,

 

I have tested my app on 9800 and 9790 devices.

more details are :

9800 - Device OS -6.0.0.246

             BlackBerry World Version is - 3.1.4.25

 

9790- Device Os-7.0.0.344

            BlackBerry World Version is-4.3.0.32


Please reply.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: UserCancelException while implementing In App purchase

Just for the record, both of those are old versions of the OS,  Have you tried upgrading either of these phones?  Does the problem occur with newer levels of the OS in other phones? 

New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: UserCancelException while implementing In App purchase

Hii peter

As far as I know 7.1 is also a latest OS and quite popular too. Our Client is having OS 6.0. and higher upto 7.0
How can inApp be implemented on these OS then ??

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: UserCancelException while implementing In App purchase

Sorry let me clarify.

 

When you say the OS level is

6.0.0.246

the 246 indicates the release level.  There are later version issued with higher numbers.  246 is quite an old version, so I am guessing you have had this phone for a while. 

 

So I am not talking about upgrading from OS 6.0 to OS 7.0, but upgrading to a later level of OS 6.0. 

 

Here are some instructions to update the OS level on your phone:

 

http://uk.blackberry.com/software/smartphones/update/blackberry7-os.html

 

My concern here is that you are testing using old OS levels and the problem that you are having might be resolved in a newer level.  Your customers probably have newer phones

New Developer
Posts: 81
Registered: ‎03-22-2013
My Device: 9900,9930,9790,9780,9330
My Carrier: Blackberry

Re: UserCancelException while implementing In App purchase

Hii Peter,

 

I have installed blackberry desktop software for updation . But my device is not getting updated it shows "there are no blackberry device software updates available ."

 

I think my device alrady having updated os .(correct me if i a wrong).

 

Please help to solve this problem .

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: UserCancelException while implementing In App purchase

This is a bit tricky.  The actual OS's that you can install are specific to a carrier - they control which releases of software because they test these on their networks and make sure they work OK. 

 

I presume you do not have a full BlackBerry plan for the device, i.e. you don't have a plan with a carrier that includes BlackBerry data. 

 

So if you don't have a Blackberry plan with a carrier, then by default you will not get any updates, because the BlackBerry doesn't know which carrier you are using and so doesn't know which OS's levels are applicable.

 

There are ways of trying to force an upgrade onto the phone.  But the best thing would be to get a fully functioning BlackBerry phone with a BlackBerry plan, like your clients.