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.

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.

  • 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.

  • I am trying to install free apps from the store and I get "your purchase could not be executed. Please try again.

    I am trying to install free apps from the store and I get "your purchase could not be executed. Please try again.  He told me to add the payment method before apps can be purchased. A pop up with adding payments happens, but I can't activate it.  Where can else I add my mode of payment on my profile?

    Original title: payment

    Open the store and open bar charms and select "settings".  Then click on 'your account '.  You must finish setting up your account before you can get apps.  Although the apps you're looking for are 'free', you will not be charged for them, but the account setup must be run.

  • I just bought this new laptop, why I can't download free applications, I get "your purchase could not be executed. ???

    I just bought this new laptop, why I can't download free applications, I get "your purchase could not be executed.   ???

    Hi Jaynecampbell,

    Thanks for choosing Microsoft Community to post your question.

    According to the description above, it seems that you are unable to download apps, you get an error: "your purchase could not be executed. I understand the inconvenience that is brought to you, rest assured, we're here to help and guide you in the right direction.

    I would be grateful if you could answer the following questions:

    1 are you facing the question to download any specific application?

    2. using a proxy connection?

    We will check your time settings and proxy settings. Follow the steps below and we update on the State of the question.

     

    Method 1: Ensure that the date and time are correct on the computer.

    (a) check the Date/time setting by selecting the tile office and then left click on the time in the corner.

    (b) click on change date and time. And then check that the time zone is correct and the time of the internet tab has the ability to synchronize with the time server Internet.

     

    Method 2: Run the network troubleshooter utility.

    (a) open the network troubleshooter utility by sliding into the right edge of the screen, type search (or if you use a mouse, pointing to the top right of the screen, move the pointer of the mouse down and then clicking on search).

    (b) troubleshooting of network entry in the search box.

    Tapping c) or or by clicking settings and then type identify and repair network problems.

    Method 3: If you use a proxy connection, then try to disable the proxy and then try buying.

    Follow the steps to disable the proxy:

    a. open Internet Explorer

    b. click on Tools and then click Internet Options

    c. click on the connections tab and then click LAN settings

    d. disable the server to use a Proxy

    e. click on apply then Ok to save the changes.

    Method 4: Turn off the Windows Firewall and defender and then try to download the application.

    To disable Windows defender:

    a. place the upper right of the mouse and click on search and type Windows defender and press enter

    b. in the window, click the settings tab.

    c. disable the real-time protection real option.

    d. click on save changes.

    To disable the firewall:

    a. place the upper right of the mouse and click on search and type Windows Firewall and click on settings

    b. click on windows Firewall

    c. click Firewall round toggle the left pane

    d. check the option to disable the firewall.

    Note: Repeat the steps for the parameters of public and private networks.


    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Method 5: Try to separate the Microsoft account to a local then check if you are able to make the purchase.

    Note: In the Windows store, you will need to click on connect and use the credentials online.
    a. hold down the Windows key + C to display the bar of charms, click on settings , then PC settings more.
    b. in the settings of your laptop, click users and under where it says connected to , click disconnect your Microsoft account and confirm.
    c. after the test, try to connect again by repeating steps and click on connect your Microsoft account to re-associate.

    If you have additional problems, please reply to this post and we will be happy to help you further.

  • View local mode 5.1 - internal error

    Gents,

    I can't get work locally. When checking out, I get to about 80% of disk transfers, then it stops with "internal error." Newspapers attached since client-server and transfer.

    Server transfer and are of the virtual machine on the same database. The repo of transfer is on the network share. Everything looks green to me.

    Any ideas?

    Hello

    The transfer server requieres a LSI LOGIC PARALLEL as SCSI controller. It is an important condition for the local mode.

  • Notice Client with Local Mode installation issues

    I try to install the discover Client with Local Mode on a Lenovo R60 laptop, just to test the verification process on your desktop from a server transfer. Of course, this isn't a fast computer; It has a dual core 1.66 GHz processor and 1.5 GB of RAM. It is under Windows 7 32 bit. The goal is not having a stellar computer experience, but just to make sure everything works. But when I try to install the Client of the display with the Local Mode on this system, I get the attached custom in LocalModeInstall2.PNG Setup option. Note that there is no Mode Local option available.

    The forwarding server is properly installed, and I have published a picture of her with success. Access Mode local pool were set to deny remote Mode and allow the Local Mode, which should force users to download the image to use. Ironically, I was able to test that it works just by using a VM Fusion running Windows 7 64 bit, even if you are not supposed to be able to check a virtual computer to a virtual machine running in workstation or fusion.

    I'm assuming that this laptop does not have a minimum requirement, so the Local Mode installation option is not available, but I think there will be an indication of this during installation. As you can see in LocalModeInstall1.PNG, I run the installer with the Local Mode. Is it the way it is supposed to work? If the hardware supports the Local Mode, simply not made this feature available? Or I do something wrong in this?

    Just to clarify, this laptop doesn't have the view Agent, VMware Workstation, VMware ACE, or VMware Player installed. I hope someone can help me understand what is happening with this, because I feel like I'm going crazy.

    Thank you

    Dave

    Local mode in mode 5.1 is based on VMware Player 4 and requires a 64-bit processor.

    Maybe that's what prevents the installation.

    Maybe you can try with a prior customer?

    Linjo

  • Instructions to get out of Safe Mode may not work (reboot, reset), then how the heck out of Mode safe?

    Tonight, I went in Firefox for the first time at least two years. When I tried to open the version of Firefox, I got in my Applications, it is opened in Mode safe.

    So I downloaded the latest version of Firefox open, and it automatically retrieved my old favorites. However, the download open mode without failure.

    I have pores through the help files and tried a few suggestions required out of Safe Mode. I closed and reopened Firefox, choosing Reset. That did not work.

    I closed Firefox and restarted my computer. Then I opened Firefox. It opened in Mode safe and gave me no alternative.

    I only went in Firefox, because I couldn't access the router configuration page Cisco/Linksys (198.162.1.1) following the instructions I gave to me. I guess Chrome might have had a problem, so I decided to try Firefox. But I can never know if Firefox might have gotten me in the configuration page of the router, I have to go, because I'm stuck in Mode without failure.

    While I strongly agree with nature without non-profit, open-source Firefox, I remember why I stopped using Firefox a long time ago: it is narrow in its help functions, and it takes too much knowledge of the user.

    So, I'm stuck, and I can never get this router put in place, as I am in desperate need of.

    I doubt that I will check in the forum, because I do not think there is any point. If I can't even get out of Safe Mode - and I don't know how it happened in Mode safe, because there certainly were no accidents in the years more doubled in the course of which I haven't used Firefox - it is useless to attempt to use this browser. If you want to contact me, you can do so through the email address I registered with.

    Have you checked the target line in the shortcut to the Firefox desktop (right click: properties) to ensure that there not - safe-mode switch of attached command line?

    Also make sure that you are not now the SHIFT key or use a hotkey with only the Shift modifier.

  • How can I get out of the mode of recovery on my nano without restoring

    I have a 4th Gen ipod nano.  Screen went black, I tried to reset (by pressing menu and Center button) without success.  Nano plugged into pc, dialog said in recovery mode, need to restore for nano to work in iTunes, I don't want to restore because I lose the music.  Is there a way to get out of recovery mode without restoring?  I read a few threads, without success, in my case.

    Sorry, no. Once the device is in Recovery Mode, you need to restore. If you have been back up your device in iTunes or iCloud, you can restore it from your backup.

    See you soon,.

    GB

  • Get and set local variables in c#

    Hello

    I am instantiating a .net (c# 2005) of Teststand assembly.

    I want to get all the local variables of Teststand in my c# application and also to be able to define Teststand inhabitants of c#.

    Does anyone have a solution for this?

    Thanks in advance.

    Hello

    Here is an example of the CVI that perhaps you can use as a guide.

    http://sine.NI.com/DevZone/CDA/EPD/p/ID/3086

    concerning

    Ray Farmer

  • How do you get sound on safe mode if it has not told!

    How do you get sound on safe mode if it has not told? He didn't use to say! It is possible a hacker has stolen the sound and typed it is? It could have been someone who was company or seized that they work in or landed a job at the company laptop I have! phyllisfc

    Frankly I doubt that you ever had its Mode without failure.  Safe mode is a specially designed Windows state that charge only a very minimal set of very generic for devices drivers, so that you can resolve problems or solve problems that cannot be solved with the full software and driver responsible.  Sound is one of the first things that gets tossed by the window, as improved video drivers, network drivers and so on.

  • can not install/does can not get out of safe mode pc

    Obviously, I have a problem w / my pc = I can't get out of safe mode - I can't install essentials microphone or kapersky pure pd - I have tried everything that I could, always safemode.help!

    Aiming to repair the system for assistance: http://answers.microsoft.com/en-us/protect/forum/protect_start/i-cant-download-micro-essentials-or-kapersky/08ae6352-4867-4c77-b8ad-347fd96aba4c?page=1&tm=1330375825720#footer

    http://www.SevenForums.com/tutorials/700-system-restore.html

    Kind regards...

  • Recently started - can't get out of sleep mode

    XP SP3 - after PC switch mode 'sleep', cannot get out of sleep mode with mouse, keyboard, or by opening the cover on the top of the Tower - must press the power button.

    I checked the control panel / Dipslay and don't see any necessary adjustment automatically exit mode "Eve"

    Any suggestions on how to fix?

    Hello

    · What is the number and the model of the computer?

    · Do you remember all the recent changes on the computer before the show?

    Try the steps listed in the link below: how to solve the problems of hibernation and standby in Windows XP: http://support.microsoft.com/kb/907477

  • Can't get out of safe mode using msconfig

    I tried to use the msconfig on my laptop,
    who has windows vista, to get out of safe mode.
    Whenever I signed off but when I went back
    and the same choices came, I checked start windows normally
    which bring me just on the choice of
    Start windows normally or in safe mode,
    but only the safe mode would make me on the computer.

    I appreciate any suggestions.

    Thank you

    Robert

    You should uncheck the mode without fail in the Msconfig splash screen.

  • I can't get out of Safe Mode boot

    Original title: cannot EXIT the MODE without START FAILURE

    Ouch, I really did it this time. I am running Vista Home Premium, AMD 64.  Last weekend, I tried to download an audio file and could not understand why it wouldn't download.  It turns weird as extensions AU or something.  But before I figured out it is the reason why it would not download, I tried other things that probably did not help my computer at all.  I went on a site to update the drivers.  I have no idea that I have updated drivers.  I also downloaded a new version of Java.  There may have been other things I've done but I do not know what.  This shows that a little knowledge in the wrong hands can be a dangerous thing!

    Since then, I've been making some unusual pop - ups.  The first said "rundll32 Windows host process has stopped working".  I've been using Windows & so, I understand why I'm going, but I don't know how to get rid of it.  The other pop-up that was more worried is "Windows Defender detected programs that may compromise your privacy or damage your computer.  Trojan:Win32 / nundo. Gen! A Trojan:Win32 / Hiloti.gen! One' being not not sure of what I did over the weekend that caused this, I decided the best thing to do was a system restore to a date preceding the last weekend.  I tried last night, April 14. When I went into the system restore, there was no option to choose a restore point other than yesterday's date, April 14.  I clicked on choose a different restore date but nothing happens.  Why is this?  So finally with no other choice, I clicked on yesterday and proceeded to restore.  After the restore and the computer has rebooted, I realized that I was still getting the same two pop-up windows.  Here is where I really get things screwed up.

    After the restoration & closing & turn my computer once or twice to see that I had the same problems, I came up with the brilliant idea to start my computer in safe mode.  I don't know why, I didn't know what I'd do once I'm in safe mode, but I thought I'd give it a try. I reiterate the previous statement, a little knowledge in the wrong hands is a dangerous thing! So I did a restart and exploited the F8 key until that startup options it.  I chose safe mode.  Now, almost nothing works.  I can't go on the Internet.  Restore still won't let me choose one date other than those of yesterday and the worst of all, I can't return to normal startup upward.  I tried restarting the computer and tap the F8 button until what came startup options it.  I scrolled down & selected normal startup upward.  But when it starts, it is always in safe mode.  I spent more than 4 hours trying to solve this problem.  Finally, I turned off the computer and went to bed.  I was hoping that the computer fairies could come and fix things while I was sleeping.  No luck.  This can be corrected?  Your help is desperately needed.  Be very specific.  I'm sure it's hard to say, but my computer knowledge is limited.

    I'm very grateful for any help you can give me.

    Sandee

    Matt, thank you intervene and adding additional support for this issue.  I don't see your answer in time & I took my computer to the person IS where my husband works.  I was too scared to run the full recovery.  One of my big questions I couldn't get out of Safe Mode Start up.   Here's something important, he found... It is entered in the system configurations and found START up in safe MODE has been verified.  Don't ask me how this cuz happened I don't know I go there & check it but once he fired it I was able to repeat a regular start.  Hallelujah!  He was able to fix most of my problems, but I've always had some problems... as not be able to uninstall a program.  With the extra help last weekend from this site, I think I'm pretty much back to normal.

    Do you think I should run the Vista SP1?  I started to do the day that my system was haywire so I highly doubt that it installed properly.  Will not be automatically implemented Microsoft?

    Once again, thank you to all who helped me with this.  I would be about $200 more poor now if it wasn't for your help.

Maybe you are looking for