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
Contributor
radwon
Posts: 18
Registered: ‎09-28-2012
My Device: BlackBerry 10

Payment service error codes

I'm using the native/cascades PaymentManager in test connection mode, and all the different errors have the same code (4). Is this because it is in test mode or will the result be the same on a live connection?

Also is there a list of the error codes for the payment service? I've looked but couldn't find any in the documentation. At the moment the only way I can differentiate between the errors is via the errorText but is this text fixed or likely to change in the future?

Thanks for any help.

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

Re: Payment service error codes

The error code being returned is a bug which I reported a while back but has yet to be resolved. More error codes have also been requested to help handle a wider variety of error responses.

 

A list of error codes can be found here:

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_re...

 

These codes should get added to the Cascades docs shortly as well.

Garett
@garettBeuk
--
Goodbye everybody!
Contributor
radwon
Posts: 18
Registered: ‎09-28-2012
My Device: BlackBerry 10

Re: Payment service error codes

Thanks for the error code list.

Is there a link to the JIRA issue, or an ETA on the fix?

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

Re: Payment service error codes

The bug should only be for local testing mode and is already fixed in an internal OS build, so the next drop should include the fix.

Garett
@garettBeuk
--
Goodbye everybody!
Contributor
radwon
Posts: 18
Registered: ‎09-28-2012
My Device: BlackBerry 10

Re: Payment service error codes

I'm still experiencing this problem in OS 10.1. All the errors in testing, return code 4. Also I still can't find the list of error codes in the Cascades documentation.

Specifically, how can I test for the "Already Purchased" response?

Thanks.

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

Re: Payment service error codes

Are you testing using an app that was side-loaded or downloaded through BlackBerry World?

Is the app in local or production mode?

Garett
@garettBeuk
--
Goodbye everybody!
Contributor
radwon
Posts: 18
Registered: ‎09-28-2012
My Device: BlackBerry 10

Re: Payment service error codes

In testing locally (PaymentConnectionMode::Test) every error returns code 4. It was reported that this was a bug in 10.0 that was due to be fixed but I'm still experiencing the same issue running on 10.1.

Since that isn't working, I'm looking for the list of possible error codes that can be returned from this:

http://developer.blackberry.com/cascades/reference/bb__platform__purchasereply.html#property-errorco...

I'd like to be able to detect an "Already Purchased" error in production mode.

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

Re: Payment service error codes

Contributor
radwon
Posts: 18
Registered: ‎09-28-2012
My Device: BlackBerry 10

Re: Payment service error codes

How do I detect an "Already Purchased" error in 10.0?

Developer
gyubok
Posts: 520
Registered: ‎10-08-2009
My Device: Bold 9900

Re: Payment service error codes

How do I detect already purchased error code in 10.2? In 10.1, I use error code of 5 which seem to indicate error caused by past purchase history. What is it in 10.2?