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

Native Development

Reply
Trusted Contributor
sucroid
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook
Accepted Solution

payment service local mode behaviour

I am a bit confused how local mode is supposed to work.

 

When my app calls paymentservice_purchase_request, no paymentservice event is generated.  Is this normal?

 

Also, when local mode is on,  paymentservice_get_existing_purchases_request fails.  Is this normal as well?

Sucroid.com
Sweet Apps for the Fans
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: payment service local mode behaviour

Hi there,

 

Local mode should still create events but also give you the option of how to handle the payment events (success, failure, failure including reason). Could you share a snippet of your code so we can see what the issue may be?

 

Retrieving previously purchased digital goods will not work unless your applicatiom has been posted to App World with real purchases (unless a full transaction occurs purchases will not be added to your history).

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Trusted Contributor
sucroid
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook

Re: payment service local mode behaviour

I wonder if running OS2.1 beta is causing the lockup.  Maybe I should compile with the 2.1 SDK?

 

I'll try to pare down my code and post something.

Sucroid.com
Sweet Apps for the Fans
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: payment service local mode behaviour

Shouldn't be the case, the APIs should be forwards compatible, but a quick test would confirm.

Garett
@garettBeuk
--
Goodbye everybody!
Trusted Contributor
sucroid
Posts: 195
Registered: ‎03-12-2012
My Device: PlayBook

Re: payment service local mode behaviour

Thanks for your help.  It was a silly mistake on my part.  I forgot to set the window_group_id of the main screen.  That's why the transaction dialog doesn't show up.

 

Now everything seems to be working as expected.

Sucroid.com
Sweet Apps for the Fans
Developer
TobyKaos
Posts: 78
Registered: ‎12-12-2012
My Device: playbook

Re: payment service local mode behaviour

Hello,

I have a blocking bug, when I call paymentservice_purchase_request the application freeze and no answer, no dialog box appears.

Maybe due to a bad window group id?

I create a function that return me a group id like this:

char* get_window_group_id()
{
static char s_window_group_id[sizeof("ChaosEngineWindowsGroup") + sizeof(double)] = "";
if (!s_window_group_id[0]) {
STD_Sprintf(s_window_group_id, "ChaosEngineWindowsGroup%d", getpid());
}
return s_window_group_id;
}

But I think something is wrong. Maybe a group id is already attach by default when I create my opengl window?
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: payment service local mode behaviour

Please start a new thread with your question, this one has already been accepted as solved.
Garett
@garettBeuk
--
Goodbye everybody!