Existing purchases in the sandbox?

I'm currently testing digital purchases. We have a 30 day subscription and a mode (consumables) added to the project "1 year license.

I can buy the two without problem, but searching for purchase fails.

According to the documentation

You can retrieve past purchases only for the current test session. Digital goods that are purchased in a draft status are not written to the transaction database, so when you end the test session the cache is cleared.

For now I just have a few buttons, "purchase subscription", "buy license" and "check for purchases", I use one after the other (buy things!), but the answer of requestExistingPurchases() is always errorcode 3 item not found (PS1300eHW).

As for the subscription, I buy it with success, but always the answer-> isActive returns false.

Could someone explain the session 'test' ends in fact? Or how can I test my code without the publication of the application and the purchase of the subscription "for real" first?

You will only be able to recover existing if you use local mode by setting the mode of connection Test or purchases local (depending on who is using Cascade app or C API).

If you do not use the Test mode and you use a sandbox user, recovery of existing purchases won't work, because the purchase transaction is not recorded on the BlackBerry World.

If subscriptions can only be tested in test/local mode, unless you use real money.

It refers to the review session would be running the application in local/test mode.  Once you close, all data in the local mode disappeared.

Tags: BlackBerry Developers

Similar Questions

  • Is it possible to get existing purchases with sandbox account?

    Hi all!
    I test the payment service in my application. After you download the BB world app, I am able to buy the products in accordance with my sandbox account to sand. But I still have a few problems when obtaining existing purchases. I also tried to set the parameter of the function paymentSystem.getExistingPurchase to true and false, but there is no result at all.

    paymentSystem.getExistingPurchase (false);
    paymentSystem.addEventListener (PaymentSuccessEvent.GET_EXISTING_PURCHASES_SUCCESS, function(e:_PaymentSuccessEvent):void

    {

    var purchase: purchase
    var pastPurchases: purchases = e.existingPurchases;
    for (var i: int = 0; i<>
    {

    Buy = pastPurchases [i]

    if(mySKU == Purchase.digitalGoodSKU)

    {

    my code here!

    }

    }

    });

    Any help would be greatly appreciated. Thanks in advance!

    I said that it is a good idea to store information of IPA with the application (app-storage), so that the server does not have to check every time. Only ask if anything has been preserved (Wells also provided a refreshment under settings). This will allow the application to work without a network connection.

    All depends on what the user is "shopping"? If it's levels in a game, you want to know about those. Consumables are more like things that they have only once and if they want again or another, they have to buy.

  • get existing purchases - local mode

    Hi, I tried to implement IPA in my game, and I seem to have some problems with getting existing purchases. When the application starts (local mode), the paymentservice_get_existing_purchases_request (real... 260 (communication delay) returns an error that makes sense and then paymentservice_get_existing_purchases_request (fake.. runs successfully, but he would remember never any purchase that was made when the game was running previously. It would be however, remember correctly all the purchases that were made in this session. But if I close the application and run it again, it wouldn't remember any purchase.

    Is that how it is supposed to work in local mode? Is that how it is supposed to run when running online.

    As stated in the documentation:

    'allow_refresh '.

    If true the device should be given to update the list of purchases from the Service of payment server, if false, the current list of cached purchases must be returned immediately. »

    I guess what I'm asking is which is the allow_refresh setting is disabled, so that the function returns exactly? What is this cover contains between the time where the application has been installed or only from the current session?

    Any help is appreciated.

    Thank you!

    App World of cache is the cache of your browser, it is nice to use when it is available, but should not be invoked. The cache can be deleted at any time, for example, if the device is still low on memory.

    Your application must keep track of purchases, it should not be necessary to check purchases every time it is executed, but you can use the cache for quick control, if the info is available then your app could use it (ex after a reinstall of the application) otherwise it would be probably better to update and also pre-cache all purchases in your application as well.

  • How can I add a password to an existing network of the time capsule?

    How can I add a password to an existing network of the time capsule?

    I guess you mean that time Capsule has already been configured to provide a signal of wireless network, correct?

    Do you mean that the network has no password at all right now... or... do you mean that the network has an existing password, but you want to change the password?

    What operating system are you using on the iMac that you list in your profile?

  • Why not my iphone 7 purchased in the work of United States in India?

    I bought an iphone 7 in the USA on a trip to Best Buy.

    I bought a T-Mobile Sim and what I had to go with some carriers.

    When I brought this back to the India, the phone does not work with my Indian SIM card.

    It says that I have to use a specific door-SIM.

    When I check with T - Mobile by providing my IMEI, they said my device was a 'device T - Mobile no'

    Here's the mail:

    "Thank you for taking the time to contact T-Mobile. We received your request to release SIM. Unfortunately, we are unable to process your request at this time because we are only able to provide the unlock codes for T-Mobile USA phones. Please check your request for unlocking for this equipment directly to the carrier that the handset was purchased from. "

    But the handset was bought from T-Mobile carrier.

    How can I unlock my phone in these circumstances?

    Thank you.

    PS: I checked and the bandwiths are fine

    The website check out BestBuy - they do not sell the iPhone for T-Mobile 7.  All their iPhone models 7 are sold carrier locked on Sprint, Verizon or AT & T.  It doesn't matter which SIM was purchased at the time - if you bought an iPhone 7 or 7plus BestBuy it is carrier locked (one of AT & T, Sprint or Verizon).  You've been misinformed about what you buy or you misunderstood what you said the people of BestBuy.

    BestBuy does not sell the iPhone Unlocked 7 or 7 more.  Nor do they sell these devices for T-Mobile.  If your phone is locked to AT & T, Sprint or Verizon and they will not unlock it unless you are or have been a customer of theirs with an account in good standing, and after meeting the minimum period of service to qualify for unlocking.

    Return it to best buy, if you can.  T-Mobile is you tell the simple truth.  There is nothing they can do for you, that this device is not locked to their network.

    Sorry, but this is a perfect example of why it's a bad idea to buy your iPhone abroad.  In particular, without being absolutely sure what you purchase and what limits the device can be fitted.

  • Is it possible to have a common accessible file location for the main application in the sandbox and its extension app plugin

    I'm trying to launch an app on the app store for mac. The bundle of the main application and everything inside it is on sandbox.

    The main application Bundle identifier is com.xxx.core.app . The identifier for the internal Plugin Finder Extension application Bundle is com.xxx.core.app.extensions .

    Now the problem is the extension inner finder is also available in sand and trying to read a file written by the main application.

    The main application writes the file location depending on mac OS X, for example temp/var/folder/jv11743453495593/T/com.xxx.core.app

    But the internal Plugins try to read/var/folder/jv11743453495593/T/com.xxx.core.app/extensions

    Because of the different bundle identifiers, they have different containers.

    Can someone let me know how to limit the same application and its plugins to the same folder location. Does perform a work around for this problem.

    Hello yuktikapahwa,

    See the Sandbox Apple Guide under the ApplicationDirectory group container

    You must create a group that your container can access. I'm not 100% certain that this will work with extensions of Finder, but it seems the most logical place to start.

  • Hello, please tell me, if iphone purchased at the Canada without a contract with the mobile operator, it will be subject to safeguards in Russia

    Hello, please tell me, if iphone purchased at the Canada without a contract with the mobile operator, it will be subject to safeguards in Russia

    You have the latest version of iOS installed and if you use not updated the software on the phone (jailbreak), the phone can't be hacked.

    Unauthorized modification of the iOS can cause security vulnerabilities, instability, reduced and another independence from...

  • A Mac mini, purchased in the UNITED Arab Emirates can be used in the USA with only change the power cord?

    A Mac mini, purchased in the UNITED Arab Emirates can be used in the USA with only change the power cord?

    Yes.

    http://www.Apple.com/Mac-mini/specs/

    the voltage may vary from 100-240 V AC.

  • app purchase where the physical store is not present

    I am from Bangladesh and that you wish to purchase an app on the app store, but there is no shop in my country. is there an alternative way for app purchases where the physical store is not present

    TIA

    Mubaswir

    No, the only place to get iOS apps is on the app store (via iTunes on a computer or an App Store app on an iOS device) and you must be in a country to use its iTunes/App store (which is part of the terms of the store) - until if/when Apple open an iTunes store in Bangladesh (we are fellow users we do not know what might happen until Apple announce something) Unfortunately you will not be able to download any content from the iTunes store.

  • The iPod nano allows me to add music to apple's music or can only add music purchased at the nano?

    The iPod nano allows me to add music to apple's music or can only add music purchased at the nano?

    IPod Nano can't stand Apple's music.

    Reference: join Apple music on your iPhone, iPad, iPod touch, Mac, or PC - Apple Support

  • The purchased App appears as purchased on the App Store

    Hello everyone.

    Here's my problem.  I bought the game Metal Gear Rising: statement earlier.  I played it for a few months, but then I had to do a clean install of the operating system and I'm trying to download the game again until now, because I wanted to spend my storage to an SSD.  Now that I did it, I can't download the game.  It does not appear in the tab purchased on the App Store.  And when I go to the page of the app if he asks me to buy again.  I've already paid nearly $40 for this game, so I would like to know what I can do to download and to recognize that the game was bought by my Appstore account.

    Thank you.

    I use a MacBook Pro 13 inch non-retine, Intel Core i7 2.9 gHz, 16 GB of DDR3 RAM, 240 GB SSD.  Running macOS Beta Sierra, but I met this problem even when I was still running of Mavericks, and then when I was running from El Capitan.

    If you bought it from one source other than the Mac App Store, you must reload from this source.

    If you bought it from the Mac App Store, but with another Apple ID, you must be logged in with the Apple ID.

    If you bought it from the Mac App Store with the same Apple ID, click here , or contact Apple.

    (143527)

  • How to allow my new iMac desktop computer to download previous purchases on the iTunes Store?

    How to allow my new iMac desktop computer to download previous purchases on the iTunes Store? I transferred all of my information from my old Mac Mini to my new iMac, retina 4K, 21.5 - inch desktop computer via my Apple, WiFi, and Migration Wizard. My complete music in iTunes library is available and visible, but when I try to play the music of the song or artist I have the following message: "You must allow this computer from the Store menu until you can download previous purchases."  I allowed off my old Mac Mini and an even more ancient PC of my iTunes account page.  Please notify.

    On your new machine > iTunes > main menu > account > permissions > authorize this computer?

  • How do I know the date purchased in the macbook pro?

    How do I know the date purchased in the macbook pro?

    The date of the purchase of a MBP will on reception, not in the MBP.

    Ciao.

  • I reinstalled iTunes for windows and downloaded two albums purchased on the iTunes store. Both albums have digital booklet in it but it seems that it has not downloaded. In the store, it seems certain. How should I download them?

    I reinstalled iTunes for windows and downloaded two albums purchased on the iTunes store. Both albums have digital booklet in it but it seems that it has not downloaded. In the store, it seems certain. How should I download them?

    Try iTunes Store > Quick links > purchase > music > not on my computer.

    If they do not show here, then visit https://reportaproblem.apple.com/

    TT2

  • condition of warranty in Italy for a macbook purchased in the United States

    Hi also

    A few days ago I received a gift from my American uncles: the new Macbook Pro. I'm an Italian student and I live in Italy so I would like to know something more about the State of security in Italy for products purchased in the U.S. Apple, if I can get the same treatment in an Italian Apple store and if I keep the same rights. Thanks for the reply.

    The warranty for Mbps is around the world.  Here's the fine print:

    https://store.Apple.com/catalog/images/worldwidewarranty.html

    Ciao.

Maybe you are looking for

  • How to set up the 3G connection with "optus" on Portege Z30 - has PT243E

    Hello; I'm trying for several days to set up my 3g connection / 4g with my sim card "optus, but I don't not each time."I downloaded 'toshiba wireless manager', but my computer does not detect my card. Anyone have a solution? Thank you

  • Sudden stops... no obvious cause

    Hi guys In the last two weeks my laptop Pavilion G6 2.5 year began to close (black screen) - apparently randomly, but usually when the battery is about 35%. I also lost the 'low battery' warning, and despite the changing settings and try a new profil

  • Problem with my Thinkpad SL500 reading blank DVDs

    My SL500 will not read the sony blank DVD brand I. I know that my hard drive is functional. My drive plays DVD fine, he reads the Virgin and regular music CD. If this blank DVD is too recent for the SL500 read, lenovo should release the firmware to f

  • Restoration of the factory without recovery disks

    Hello I bought a new laptop Sony Vaio VGN-AR870 in June 2008 and I enjoyed it a bit. It seems to me have succeeded to it bogged down and it works more slowly and more slowly and for a long time and I have remember how it is used to run when I bought

  • Expression

    Hi allI have data as below:SQL > DATA2 (SELECT 'yyyy.uuuu' AS col FROM DUAL3 UNION4. SELECT 'uuu.hhhh' FROM DUAL5 UNION6. SELECT 'xxxxx' FROM DUAL7 UNION8. SELECT 'yyyy.ooooo' FROM DUAL9     )10. Select collar11 DATA;COL----------UUU.HHHHXXXXXyyyy.OO