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
Visitor
PappuKumarSharma
Posts: 1
Registered: ‎05-21-2013
My Device: BlackBerry PlayBook

How To Integrate InApp Purchase in Cocos2dx Based Games.

i  Integrated,

I created One Sample Project (HelloWorld),  In That Screen i added one Button.  clicking on This Button I am Calling Payment Services Main Class  in that class , it reaches to this Statement   , But It Stucked at that place   (I am Using Local Connection)

 

if (paymentservice_purchase_request(digital_good_id, digital_good_sku, digital_good_name,
metadata, purchase_app_name, purchase_app_icon, CCEGLView::sharedOpenGLView()->getWindowGroupId(), &request_id) != BPS_SUCCESS) {
fprintf(stderr, "Error: purchase request failed.\n");
}

 

Plz help me 

thanks in advance.

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

Re: How To Integrate InApp Purchase in Cocos2dx Based Games.