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
Contributor
Posts: 43
Registered: ‎01-19-2011
My Device: lets say: I don't own CDMA Variants
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
Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
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    |     Mipixi.com :  Web App for Photo Sharing
Contributor
Posts: 43
Registered: ‎01-19-2011
My Device: lets say: I don't own CDMA Variants
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
Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
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    |     Mipixi.com :  Web App for Photo Sharing
Contributor
Posts: 43
Registered: ‎01-19-2011
My Device: lets say: I don't own CDMA Variants
My Carrier: T-Mobile Austria

Re: InApp Payment

Thx

________________
mappau Dev Team
blackberry@mappau.com twitter.com/#!/mappau facebook.com/mappau.at