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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
aldrian
Posts: 43
Registered: ‎01-19-2011
My Carrier: T-Mobile Austria
Accepted Solution

InApp Payment

Hi,

 

I'm having the following problem: My App uses In-app Payments... 

 

void MyThread::purchaseResponse() {

bb::platform::PurchaseReply *reply = qobject_cast<
bb::platform::PurchaseReply*>(sender());

Q_ASSERT(reply);

//emits error signal upon errors.
if (reply->isError()) {

//do some error handling qDebug() << "Purchase response error. Code(" << reply->errorCode() << ") Text(" << reply->errorText() << ")"; } reply->deleteLater(); }

 

 

and if I get an error, I want to do some Error Handling, but I always get Error Code 4. In case this has to do with the Test-Mode - can I find some enumerations or documentation? 

 

Thanks

 

Peter 

________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at
Please use plain text.
Developer
StevenKader
Posts: 616
Registered: ‎02-03-2010
My Carrier: Rogers

Re: InApp Payment

Are you seeing the purchase test screen on the device and performaning a succesful purchase?


Steven Kader at JaredCo
   Follow me on Twitter     BlackBerry Daily News

Feel free to press the like button to thank the user that helped you. Please mark posts as solved if you found a solution.
Please use plain text.
Contributor
aldrian
Posts: 43
Registered: ‎01-19-2011
My Carrier: T-Mobile Austria

Re: InApp Payment

Yes - I get this screen. 

________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at
Please use plain text.
Developer
StevenKader
Posts: 616
Registered: ‎02-03-2010
My Carrier: Rogers

Re: InApp Payment

I found this that may be helpful.  You may want to ask more questions there since a RIM person with payment experience is watching that forum :

 

http://supportforums.blackberry.com/t5/Payment-Service/Payment-service-error-codes/m-p/2119233/highl...

 


Steven Kader at JaredCo
   Follow me on Twitter     BlackBerry Daily News

Feel free to press the like button to thank the user that helped you. Please mark posts as solved if you found a solution.
Please use plain text.
Contributor
aldrian
Posts: 43
Registered: ‎01-19-2011
My Carrier: T-Mobile Austria

Re: InApp Payment

Thx

________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at
Please use plain text.