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

Adobe AIR Development

Reply
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: PaymentSystem getExistingPurchases failure

Full 2.0 of the OS still does not let me download a DRAFT app to test purchasing. No feed back from App World after typing 'tst'. From the browser, it goes to App World, but then I get "BlackBerry App World is having trouble connecting to the BlackBerry App World server. Verify your network connections and try again." My network is fine. Able to browse fine and look up apps in App World fine.
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: PaymentSystem getExistingPurchases failure

Finally got this to work. You really need to select on the background before you type in 'tst'. Would be nice if App World showed an Alert letting them know they are in TEST mode.

So with update to the test/beta version. Does the user get notified like other updates, or do they have to do the same steps to download an updated beta version?
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: PaymentSystem getExistingPurchases failure

Well, getting the app down from App World with using the sandbox was resolved, but I am still getting the error:

"The application must be installed using AppWorld in order to access the payment system."

When calling getExistingPurchases.

Now what should I try?
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 818
Registered: 10-16-2009

Re: PaymentSystem getExistingPurchases failure

Past purchases won't be useful in sandbox mode as all sandbox purchases will not be counted (they aren't full transactions). Are you able to test buying something? What happens when doing this?

 

I have tested here and have been unable to reproduce this error. It may be worth deleting the app from the PlayBook altogether then loading from sandbox to ensure the correct version of the app is being used.

 

Regards,

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone

--
Think or a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: PaymentSystem getExistingPurchases failure

I have not tested the purchase yet, because I first try to get the purchases to see if they have purchased it yet, before I allow them to purchase it.  If they already purchased it (maybe they had to reinstall the app or something), then I would just download the resource. 

 

So I guess you are saying that there is not a way to test previous purchases(?).

 

What is the best process for this then?

Just make the purchase regardless if they have previously purchased it?

Does it go on error if they previously purchased it?

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 818
Registered: 10-16-2009

Re: PaymentSystem getExistingPurchases failure

If the purchases were actually made, outside of the sandbox, then they will be able to be retrieved, otherwise no purchases will be returned. In any case you should not receive the error you are, this indicates that the app was not loaded via App World.

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone

--
Think or a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Developer
jtegen
Posts: 4,247
Registered: 10-27-2010
My Carrier: Verizon

Re: PaymentSystem getExistingPurchases failure

This copy of the app was downloaded from App World with the sandbox method. I do have sideloaded version as well. Would that confuse it?
Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 818
Registered: 10-16-2009

Re: PaymentSystem getExistingPurchases failure

If both apps were created with the same keys and app name then they should not both be able to exist on the same device at the same time. I would suggest, to avoid any potential confusion, that all existing versions be purged then install the App World version using the sandbox method and test only with this version. 

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone

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