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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 10
Registered: ‎03-08-2013
My Device: BB 10
My Carrier: -
Accepted Solution

BPS error

main.o: In function `main':
C:\cocos2d-2.1beta3-x-2.1.1\Trigger Knight PlayBook\proj.blackberry\Device-Debug/..\main.cpp:34: undefined reference to `paymentservice_purchase_arguments_create'
cc: C:/bbndk-2.1.0/host/win32/x86/usr/bin/ntoarm-ld caught signal 1
Build error occurred, build is stopped
Time consumed: 11056 ms

 

 

i put this code to main() from this link

https://developer.blackberry.com/native/documentation/bb10/recipe_payment_2006487_11.html

and at the line 5 (paymentservice_purchase_arguments_create) get stopped..

 

any idea?

 

Developer
Posts: 36
Registered: ‎01-16-2013
My Device: Z10
My Carrier: Telus

Re: BPS error

Did you link with the library bps or wherever paymentservice_purchase_arguments_create is?

Contributor
Posts: 10
Registered: ‎03-08-2013
My Device: BB 10
My Carrier: -

Re: BPS error

[ Edited ]

after i check..

code in that link is for BB10..

and now i'm developing BB PlayBook

 

btw.. any sample code for BB PlayBook in-app purchase??

Retired
Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: BPS error

You are following a recipe from BlackBerry 10, but you only have BBNDK 2.1.0 for PlayBook installed.  paymentservice_purchase_arguments_create() is a function that's new for BlackBerry 10 and did not exist on PlayBook. 

 

If you're developing for BlackBerry 10, install and use BlackBerry 10 Native SDK: http://developer.blackberry.com/native/download/#blackberry10

 

If you're developing for PlayBook, your documentation starts at: https://developer.blackberry.com/native/documentation/playbook/

 

At the top of the left column of every page of documentation is a "Platform" option that allows you to switch between BlackBerry 10 and PlayBook OS.