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

Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Get Existing Payments

Im trying to get existing payments but it's always coming back with an error.


Also I can only try this in the live version of my app as Get existing purchases (network) not supported in test mode. is there a way to test it in development mode?


Here is the get existing purchases code that comes back with an error from the server:


const ExistingPurchasesReply *reply = paymentManager->requestExistingPurchases(refresh);
    connect(reply, SIGNAL(finished()), SLOT(existingPurchasesResponse()));

 This works but comes back with an error. I set refresh to true, should it be false?


Thanks for any help


BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Get Existing Payments

Using "true" will only work if the app is live and has been downloaded through BlackBerry World.


For testing you can use "false" in either local or test mode to retrieve past purchases, the format of returned items will be the same regardless of using "true" or "false"

Goodbye everybody!