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

Payment Service

Reply
Super Contributor
JeffLemon
Posts: 391
Registered: ‎01-13-2011
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
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 1,851
Registered: ‎10-16-2009
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"

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone
@garettbeukeboom

--
Think of a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.