Need help of payment services - native Core with Cocos2dx

I create games with cocos2dx on blackberry 10 with in shopping, I sell the virtual money in "Cash" on my game.

I use before local mode and then I try to use the sanbox.

I successfully download my games on the world of blackberry with account sanbox blackberry, already downloaded my game on the world of bb and digital products is valid...

But my problem is:

When the purchase is successful (good and good, ID etc. is valid), I don't get money "Cash" (my money does not increase on my game store).

I have references already opened two link on cocos2dx, but I can't get the solution:

http://supportforums.BlackBerry.com/T5/native-development/A-post-mortem-supporting-in-app-purchases-...

http://supportforums.BlackBerry.com/T5/native-development/is-it-possible-to-use-PaymentService-with-...

There's an idea on the code of validation when the purchase is successful? THX

This is my code:

CCEGLView * eglView = CCEGLView::sharedOpenGLView();
eglView-> setFrameSize (600, 1024);

bps_initialize();
paymentservice_request_events (0);
paymentservice_set_connection_mode (true);
purchase_arguments_t * args = NULL;
paymentservice_purchase_arguments_create (&args);)

paymentservice_purchase_arguments_set_digital_good_id (args, "xxxxxxxx");
paymentservice_purchase_arguments_set_digital_good_sku (args, "xxxxxxxx");
paymentservice_purchase_arguments_set_digital_good_name (args, "100 Cash");
paymentservice_purchase_arguments_set_metadata (args, "Purchase of the sample");
paymentservice_purchase_arguments_set_app_name (args, "Sample game");
paymentservice_purchase_arguments_set_app_icon (args, "http://www.rim.com/products/appworld_3col.jpg");
paymentservice_purchase_arguments_set_vendor_content_id (args, "xxxxxxxx");
paymentservice_purchase_arguments_set_vendor_customer_id (args, "Customer-provider-ID");
paymentservice_purchase_arguments_set_extra_parameter (args, "extrakey1", "extraval1");
paymentservice_purchase_arguments_set_extra_parameter (args, "extrakey2", "extraval2");
paymentservice_purchase_arguments_set_extra_parameter (args, "extrakey3", "extraval3");

unsigned request_id = 0;
If (paymentservice_purchase_request_with_arguments (args)
! = BPS_SUCCESS) {}
fprintf (stderr, "error: purchase requisition has not.") \n") ;
}

Your code is infinitely loop to read the events? The response of purchase may not be the first back, if you read you the event once after the purchase is attempted then it would make sense that the event is so lost.

You need to code is a loop to continuously listen BPS events.

Tags: BlackBerry Developers

Similar Questions

  • need help to set up Linksys printserver with verizon wifi hotspot

    need help to set up Linksys printserver with verizon wifi hotspot

    pfsjmhall,

    Configure your wireless router to use these recommended wireless router settings, I use channel 11. I would use a new SSID to connect easier.

    Then configure the Linksys print server. Find your network to give your passkey (password)

    Then set up the printer, choose network and follow the instructions.

    Rick

  • Need help Reparing via USB/burned disc with ISO

    I need help, repair corrupted on my computer files.  I'll explain what are the errors I get and what I have done to try to fix.  Because I feel I have tried everything, I'm thinking to update or repair via a USB port or the drive with an ISO will solve the problem.

    Apparently, everything was going well on my computer until I updated to Windows 8.1.  After I updated, integrated into my laptop keyboard no longer works as well as many other problems of pilot.  I wrote chalk this up to compatibility problems and decided to contact Microsoft Live Help.  Unfortunately, the Microsoft representative could not solve the problem after checking my computer remotely.  They recommended that contact Acer (the manufacturer of my computer).
    After another Office remote access with Acer, they were also able to help me and led me to believe that my computer had been hijacked.  Because the way my computer working fine before the update, I refused the very persistent representative, encouraging me to spend $ 500 to the UN-hijack and install security software, which I already ran.
    1. If my first attempt to solve the problem has been completely re - install Windows 8.  I have reset the factory settings and deleted all the files associated with my computer.  This problem resolved most of the issues I had, including the broken keyboard.  Then I noticed that I was getting errors with Windows Smart Screen Filter and a quick search on this question led me to a few other suggestions.
    2 administrator: command prompt
    sfc/scannow
                                 Full check of 53%. Windows resource protection found corrupt files but was unable to solve some of them. Details are provided in convertible bonds. Journal windir\Logs\CBS\CBS.log. For example C:\Windows\Logs\CBS\CBS.log. Note that logging is not currently supported in offline maintenance scenarios.
    When I tried to open log, "access denied."
    3. I tried using auto repair in the Advanced Boot Options.  Yet once, automatic repair couldn't fix my PC.  I was able to open the log file for this and noted that all of the tests completed successfully, however.
    4. I searched in the Panel > troubleshooting but did not find anything of note.

    5 I also looked a little system information by typing msinfo32 in the command prompt.  Under software environment and looking at the system drivers revealed that about half of them have stopped as the State.

    Objective: At the end of the day, I want to correct all the corrupt system files update to Windows 8.1.  In light of my last experience, I hesitate to do so since he almost broke my computer the last time I did.

    Any help or insight is greatly appreciated.

    Other info: I bought this laptop earlier this year with 8 pre-installed Windows.

    Hello

    ·         You have the Acer recovery disk?

    ·         You have the product key Windows 8?

    ·         What is the brand and model of the Acer?

    Note: I highly recommend back up all your important files and folders on an external storage device before performing any type of repair operating system or upgrade.

    Given that Windows 8 has been pre-installed on your Acer computer. I suggest you to use Acer recovery disk to restore PC to factory settings. For more information, consult the phone manual or contact Acer technical support.

    If you must reinstall Windows 8 or you want to install it on one partition and you do not have installation media, you can create it using the installer of Windows 8. To create a support, that you must use a PC running Windows 8.1, Windows 8, or Windows 7, and it must have the same architecture (32 or 64-bit) that you want to install Windows 8 on PC. You will also need your product key of Windows 8.

    Note: If you do not have a product key for Windows 8, you cannot create the installation media. You cannot use a product key of Windows 8 for this.

     

    Create an installation media for Windows 8

    http://Windows.Microsoft.com/en-in/Windows-8/create-reset-refresh-media

    I hope this helps. If you need help with Windows, let us know and will be happy to help you.

  • Please, need help printer. Nothing to do with Security Update 2009-001.

    I need help, and looking for the forums just makes me worse headache. I need to use passthrough printing, but the Mac printer does not in the comments.

    Details: OS X 10.5.6 Fusion 2.0.2. Guest is Windows 2000 SP4. Security Update 2009 - 001 has not been applied.

    The printer is a HP PhotoSmart C4480 printer attached to the Mac via USB.

    In order to avoid the obvious questions:

    Passthrough fusion printer is active. Become disabled as some users report. The Serial Port is present and connected. In OS X printer sharing is enabled in the world and for this printer (but my impression is that it should not be).

    I confirmed that the printer works from OS X. And he is listed in the merger USB menu.

    The process of Thinprint TPAutoConn * are underway on the guest. COM1 and COM2 are both present.

    The user can not use the old printer sharing solution because there is no Windows 2000 for this printer drivers. The VM is totally dependent on the system of Thinprint, and I never put in place before. Have never seen a working configuration. Don't know about its configuration beyond what is in the VMX file and upgrade manual.

    There are merger Console messages that say "no printer configured or unavailable." I think it's the key to the problem... but I don't know what to do about this.

    Help...

    Fuzzy-wan says:

    Pat Lee says:

    We have designed this feature to Windows XP and later versions. So it will not work on Windows 2000.

    Hmmm. Woody didn't say exactly if the printer actually prints

    Well I wouldn't went all the trouble to clean the building a Machine virtual Windows 2000 Pro SP4 with VMware Tools installed and printers enabled for the Virtual Machine settings and took all the dialog boxes and to make a film of the if I did had not bother to actually check and see if she would print!

    Find attached an image of a Windows 2000 printer print Test and note the relevant information.

    Computer name: W2KVM

    Name of the printer: HP LaserJet 4050 on MacBook Pro

    Printer model: TP output gateway PS

    Support: Yes

    Port name (s): THIRD:

    Note: because the printer is a B & W LaserJet I guess that the "support: Yes", it's that the "printer model: TP output gateway PS ' supports color and will therefore work with color printers as well.

  • Need help. import of images in timeline with different length.

    Need help can't find old toturial
    I'm doing a model for a photo film where I have everything ready so I just need to add 250 pictures and then it will automatically move the photos to the beat of the music. Once, I saw a toturial how to do this but can't find it. It's something with manual adjustment of markers to the music beat and then just add all the photos. but I must have missed something pls help...

    Bo

    Its called automate to sequence with no numbered markers.

    http://TV.Adobe.com/watch/learn-Premiere-Pro-CS5/GS04-making-a-rough-cut-in-Adobe-Premiere - pro.

    http://help.Adobe.com/en_US/PremierePro/CS/using/WS1c9bc5c2e465a58a91cf0b1038518aef7-7d1ba .html

  • Need help to download Service Packs

    Could someone tell me how to download Service Packs for Windows XP where I don't have a web connection. I tried to download the Service Pack 1 (a) through to Service Pack 3 since Christmas day and all I get can't seem to download. So if there is someone out there who is more computer savvy could you please help me with this. I would be very happy.

    Why do you think that you need service pack1 (a)? To check the level of service pack for your system, click Start>run, and then in the Run dialog box, type "winver". Click on 'OK'. Depending on your level of service pack, you can download the pack of service from the links below.

    Windows XP SP 1 (a).

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=19751

    Windows XP SP2.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=28

    Windows XP SP3.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=24

    Note: Ignore warnings about the pros and network facilities.

    If you experience problems with the download and installation common problems, see the link below for an automated solution or the measures to be taken to manually fix this issue.

    http://support.Microsoft.com/kb/906602

    Let us know if this has been helpful.

  • need help to set up Time Capsule with hub of sky

    Hi, I bought time Capsule and followed the instructions re. Connection cable internet hub in wide band directly on port WAN on TC. And yet nothing is happening outside orange flashing and message of airport utility saying it could not connect to the internet. I bought an Ethernet cable, just in case and tried to connect it to LAN to LAN, and I was able to create a 'network' but always seeing flashed. Can anyone help? Thank you!!

    El Capo can be really rotten networking.

    The skyhub is a router... I think it's okay... If you connect a computer directly into it, you should have internet?

    The TC may work very well in this configuration.

    Ethernet connector of skyhub LAN WAN TC as you did originally... correctly.

    So I highly recommend ethernet to the computer... because it helps no end. And even to pass the airport utility to use ethernet instead of wireless.

    Here (if obvious really that you would have ethernet under other Wi - Fi... don't know why I found totally by chance?)

    The configuration... make the TC must go to bridge mode...

    It is Off (bridge mode) on the network tab.

    And you need to create a wireless network with a different name to the skyhub.

    You can probably do it manually now without too many problems.

    And even without ethernet connection... Although reliable then ethernet is streets ahead wireless.

    Click on the TC icon in airport utility.

    Click on change... at the bottom right on the summary.

    Now you can fix it up. Click on the network and make sure that it says Off (bridge mode) I posted my configuration, but you do not follow that... I just allows you to see where everything is.

    Click on wireless and fix that up.

    You can even click on the base station and correct the name and the master password... so that all the names are short, without spaces and alphanumeric pure.

    NOT RECOMMENDED APPLE NAMES that are FALSE.

    If you have an ipad/iphone the iOS version of the utility is often better to get this right than the Mac version... particularly in the later version of the Mac OS.

  • Need help to make my printer work with the new laptop.

    I just bought a laptop ACER Aspire V5-571. At the Windows experience index. Intel (R) core, 64-bit. My current project is gettting my 2005 Dell all-in - one 944 to work with my new laptop. I passed on the line and installed the recommended driver and used the printer to scan a document I then sent an email, but for some reason my computer any it will not print a page from an online account. Keeps saying needs of troubleshooting and I need to download the driver, which I did, a Vista 7 64-bit-compatible driver. How can I make this work? or what other driver or update do I need?

    It seems that Vista drivers are the latest Dell has provided.  I noticed that, they say, you have to install all the drivers for this device before installing the Vista (s).  I found the link depending on whether you should check out

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?&docid=270659&doclang=en

    Some older printers have no Windows 7 drivers, but usually the work of those of Vista.  If they are not, you can use XP mode if you have the professional or Enterprise version of Windows 7 Ultimate.  If you have the Home Premium version, you can use him anytime upgrade to professional for $90.  Of course to buy a new printer is always an option too.

    As you probably know, it is the responsibility of the manufacturer to provide drivers.  Many manufacturers have refused to provide any Windows 7 drivers for older devices.

    Good luck.

  • Need help: receiving duplicate service Eloqua App Cloud Action notice

    We have developed an application using the eloqua action service & have notification service configured in a way to our web hook and it works fine, it send a notification to our service once the campaign is activated & send us all records of contacts, but we receive duplicate notification.

    • We receive lots of contact as notification POST records in batch of 5000 but we receive notifications, duplicate & same batch of documents several times
    • hasMore flag is supposed to tell us if they had more records, but it is still as fake and we continue receiving duplicate notifications.

    Looks like that issue an eloqua https://community.oracle.com/message/12866151, please help.

    Thanks TJ fields-Oracle

    Here is the solution,

    • You must reply with a response of 200 level or Eloqua will continue to scream assuming you never received & keep sending multiple opinions until it times out at the end fix this problem resolved by the issue of duplicate notification.
    • and now that my process to receive data directly from eloqua as part of the notification service will not use the bulk import value in hasMore flag is not serious.
  • I need help, how to configure virtual machines with PowerCLI IP addresses

    Hi all

    I open this topic because I really need your help.

    I wrote a script that can automatically create 10 VMs on my ESX Server.

    I run the script with PowerCLI.

    I want now to help script, give the ip on the 10 machines created settings.

    I don't know how, can you enlighten me on this subject?

    Is there a script that can do this?

    Thank you very much.

    Isn't the "0.2 | ForEach-Object {"a loop for? IMHO, it is a loop in the PowerShell way.

  • NEED HELP URGENT! Folio in PDF with Full-Paged background pictures are not sharp.

    Hi all

    So already I was allowed to create a version of SD and HD of my magazine app (Single-Edition with CC of course), but I'm now ready to explore the areas of the design of a single PDF, folio, which is supposed to be just as keen on the retina as well as the mini iPad iPads and lower.

    I tend to use a lot of images full paged in my design and while testing on my iPad retina via Content Viewer, I already spotted that my paged images are not as sharp. It really bothers me!

    In InDesign, I see the iPad preset (1024px 768px), folio Viewer used is the current v. 26 and all items, but also the folio itself, is made in PDF format.

    Finally, (it's the bit I'm also not too sure of), I use images high resolution and I'm affecting the native 246-iPad retina ppi ppi. Is this fair? I set my expectations too high?

    HELP PLEASE!

    Images in PDF folios are pixelated to 108 ppi. To halfway between 72 and 144.

    I don't know what you expect here.

    Bob

  • Need help on how to make dll with VC ++ 2008 for Labview function liblary

    I use VC ++ 2008Express and you want to make the DLL.

    Since I'm using VC ++ 2008, do I have to install the 'MS redistributable"on PC what dose does not have VC ++?

    Is there any free ANSI C compiler do DLL for Labview for use with the function call in libraly?

    Yes, you will probably need the Redistributable Package. Remember to distribute the "Final" of the DLL and not the "debug".

    Regarding the free ANSI C compilers, I'd do a Google search. GNU C/C++ is a very popular.

  • Need help on design for 2 EBS with RAC environment

    Hi all

    We currently have 4 servers with 256 GB of RAM, 1 TB HDD and 8 cores. Our requirement is to configure two EBS 12.1.3 with DB RAC environment. We want to take advantage of these 4 server to accommodate the two EBS since the configuration of the server (application server 2 with HA and 2 DB for RAC servers) are quite high, because the concurrent users on each EBS are not more than 200.

    So our problem is as below:

    Say we have these server 4A, B, C and D. We have 1 create multi instance node, with DB on server A & B (CARS) and application on the server C & D. Now if we want to install the second case, with the same architecture on the same servers that we do.

    (1) use the same grid infrastructure and create DB for 2nd instance cluster even. (how?)

    (2) install another grid infrastructure and create totally another cluster for this instance.

    You can do the following for a case of BSE, and perform similar operations for a 2nd on the same grid. Check after the link. He detailed information EBS on RAC Setup

    Install EBS R12 on 11g RAC Oracle ASM


    High level steps are:


    • Install and Configure Grid Infrastructure on cluster 2 nodes.
    • Create the DATA starts EAM and FRA with a sufficient size.
    • Install theSoftware to the database of this Cluster Homeon.
    • Install the EBS by using a quick installation on the database node 1 (out of the BOX Non-RAC on 1 node installation
    • Install BSE using rapid installation on nodes of applications.
    • Convert the database of 11 GR 1 material not RAC RAC Database.
  • Need help on Synaptics touchpad. Problem with scroll at startup

    I have HP DV6 7040tx. After updating the driver the latest Synaptics v.11, the zoom feature scrolling in and out does not work on startup whenever I need to open the application of synaptics and then press ok. all alone, the touchpad feature works such as scrolling. But first the functions of the touchpad works at startup without opening the application from the control panel in the start menu... Help me please so that the functionality of the touchpad works at startup...

    The synaptics software is supposed to load on start automatically, you don't have it disabled?

  • Need help... SSO configuration with vmware view

    Hi team,

    I'm under vmware view 5.1.2. I would like to configure SINGLE sign-on can we avoid to connect computers to office twice. But I'm really confused here in the configuration of SSO given that no official no documents for this.can a help me on this

    2. don't have us install and configure SSO on the remote machine where we have installed the vmware view client?

    or this sso must be installed on individual workstations?

    3. can I use vmware sso that comes with vcenter 5.1 for this set up?

    any help would be appreciated

    Kind regards

    Shan

    N ° you must install anything on virtual desktops other than the Agent of the view. This gives view SSO.

    You can talk about vCenter SSO who is not related to the PSO from view.

    To display, you must only install the software referenced in the view installation guide.

    Mark

Maybe you are looking for

  • LaserJet4: HP LaserJet 4-cant find W7 driver (32)

    Cannot find the driver for Windows 7 (32 bit) for LaserJet4.  A forum thread indicated that it is provided in the list of printers W7 but not on my machine.  Impossible to find in the HP download site support because they say that it is loaded with t

  • Work 6 GB/s hard drive IDE oucederomsurlesecondport 3 Gbit/s of the motherboard?

    Hi-I have HP Compaq DC7700 Convertible Minitowers desktop for home use.http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/KB/docDisplay/?sp4ts.Oid=3232028 & SPF...I would like to repalce the HDD (Seagate 160 GB, SATA 3 GB/s) as its probl

  • Without locking model phone unlocks automatically touch

    My fingerprint sensor is works well and unlocking... whenever I tried the power button / stop and tries to unlock jacquard its not not watch the model rather his unlocks the phone touch... instead of the finger print icon of showing in the middle Cen

  • HP Envy 5300: HP Envy 5300 and connection of Windows 8 stall

    I wanted my 5300 put in place on my wifi without problem for a few months after I bought it. However, aftering installing some updates from HP, the connection between the computer and the printer played upward. I received a message from the printer o

  • BlackBerry Blackberry Q10 10 order to USB connection

    Over the last weekend, my BB Q10 ceased to appear on my PC. When I plug the USB in the message "USB mass storage is enabled... etc" to get up, but nothing appears on the desktop. "." I uninstalled the BB Device Manager and reinstalled the latest vers