Payment services

Hello

I've added payment jar in my bb on 6.0 application os and all testing of api payment in the Simulator

PaymentEngine engine = PaymentEngine.getInstance ();

engine is always null.in simulator app world is present and I don't know which version it is... I followed the instructions of payments pdf sdk.

Not that I know of. However now that AppWorld 2.1 is officially released, I presume it would be included in the next Simulator which releases the rim...

Tags: BlackBerry Developers

Similar Questions

  • Payment Service weird problem

    Hi all

    I have an app freemium allowing users to unlock features Premium/Pro . I tried coding based on the tutorial on the docs of stunts on the payment Service.

    The problem is, I get the error code long of the answer-> errorCode();

    the code was 141004048

    Here is my code:

    void PurchasePage::purchase()
    {
        purchaseButton->setEnabled(false);
    
        paymentManager = new PaymentManager(this);
    
        // Get the window group ID and pass it to the PaymentManager instance.    const QString windowGroupId =Application::instance()->mainWindow()->groupId();    paymentManager->setWindowGroupId(windowGroupId);    //Request a purchase using the ID and SKU of the digital good.
        const PurchaseReply *purchaseReply = paymentManager->requestPurchase("244779xx", "ProVersion");
    
        // Connect the finished() signal to a slot to handle the purchase.
        QObject::connect(purchaseReply, SIGNAL(finished()), SLOT(handlePurchase()));
    }
    
    void PurchasePage::handlePurchase()
    {
        PurchaseReply *reply = qobject_cast(sender());
        Q_ASSERT(reply);
    
        // Check to see if the request finished.
        if (reply->isFinished())
        {
            //if there were errors.
            if (reply->isError())
            {
                showDialog("Purchase Error",QString::number(reply->errorCode())+"\n"+reply->errorText());
            }
            else//if there were no errors.
            {
                QString successString="Pro version is now activated.";
                showDialog("Purchase Succeed",successString);
    
                //set statusLabel text to Activated
                statusLabel->setText("Activated");
    
                purchaseButton->setEnabled(false);
            }
        }
        else
        {
            if (reply->isError())
            {
                showDialog("Purchase Error",QString::number(reply->errorCode())+"\n"+reply->errorText());
            }
        }
        reply->deleteLater();
    }
    

    How the app has been installed on the device (side loading, downloaded via the dev mode BlackBerry World etc.)?

    Never error code change? Or is it always 141004048?

    Also, looking at your code, it seems the app instantiates a new PaymentManager each time a purchase is made, you must have an instance of this, the call to purchase() should deal only with the logic of purchase requisition.

  • Professional in Flash CS6 payment services?

    I'm testing the PaymentServiceDemo.with Flash Professional CS6, as provided in the documentation for BlackBerry. The first error I get is the 'com.test.paymentapi' after the package in the .as file throws an error message. Removing it solves this problem. I added "framework.swc", 'rpc.swc', 'rpc_rc.swc', 'QNXDevice.ane', 'QNXNetwork.ane', 'QNXSensors.ane' and 'QNXSkins.ane' the path of the library. When I run the Flash project I get an error that the "SuccessEvent" is not recognized. I then added the "Blackberry.swc" in the folder/libs/blackberry to remove this error. Then, I have a long list of 'Label' unrecognized, etc. from the library for qnx. I add 'qnxui.swc' to the library, and you get the error that the Virtual Machine Java is short-term memory. The project opens with a blank white window.

    All those put in place with Flash CS6 payment Service? Help, please.

    And why all the documentation for Flash Builder? It's like the Flash Professional CS6 does not yet exist here.

    OK, you win.

    I move to Flash Builder. Hello World worked with the library of qnx and deploying WiFi won me over.

    In addition, Flash Builder opens the possibility of using the API Flash Professional ever could.

  • Compilation of the error using payment service.

    I took this documentation, but they do not compile in the PRC.  Someone else you have cascading payment service?

    Hello

    #include will fix this error.

  • How to work on the Api payment Service in blackberry

    Hello

    I was creating an application to OS 5.0 with name AppPack. I had added the paymentapi jar file to it. The project to build successfully and as I open the app in the Simulator displays a dialog box with the following error

    «Error starting AppPack: error in the Module ' paymentapi;» not found ".

    I had downloaded this Internet payment service. Please help me to solve this error.

    Thanking you in advance!

    -Sam

    If you are using eclipse:

    1. in the course of your project, good clip--> go to properties

    2. build path Java

    3. Add the libraries

    4. add some external jars (add all the jars you need)

    5. go to the tab "order and export.

    6 and select all the pots you add.

    PS: Sorry for my English.

  • payment service application freeze / no responsa

    I had a problem that payment service application freezes...

    This similar problem

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

    but this thread told it you have a problem with the screen...

    and I have test my screen snap of...

    int
    setup_screen()
    {
        screen_buffer_t buff;
        int buffer_size[2];
        int usage = SCREEN_USAGE_NATIVE;
        int attribs[1] = {SCREEN_BLIT_END};
        int dirty_rects[4] = {0, 0, buffer_size[0], buffer_size[1]};
        if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
            return EXIT_FAILURE;
        }
    
        if (screen_create_window(&screen_win, screen_ctx) != 0) {
            screen_destroy_context(screen_ctx);
            return EXIT_FAILURE;
        }
    
        if (screen_create_window_group(screen_win, get_window_group_id()) != 0) goto fail;
    
        if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) goto fail;
    
        if (screen_create_window_buffers(screen_win, 1) != 0) goto fail;
    
        if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void**)&buff) != 0) goto fail;
    
        if (screen_get_buffer_property_iv(buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size) != 0) goto fail;
    
        if (screen_fill(screen_ctx, buff, attribs) != 0) goto fail;
    
        if (screen_post_window(screen_win, buff, 1, (const int*)dirty_rects, 0) != 0) goto fail;
    
        return EXIT_SUCCESS;
    
    fail:
        screen_destroy_window(screen_win);
        screen_destroy_context(screen_ctx);
        return EXIT_FAILURE;
    }
    

    and it's called when a button clicked ads...

    My function... to paymentservice_purchase_request does it freeze / no responsa... I can't go to the next step...

    void  MainMenuScene::Ads_Click()
    {
        bps_initialize();
        if (setup_screen() != EXIT_SUCCESS) {
           fprintf(stderr, "Unable to initialize screen.");
           exit(0);
        }
        int exit_application = 0;
        navigator_request_events(0);
        paymentservice_request_events(0);
        paymentservice_set_connection_mode(true);
    
        const char* digital_good_id = "25180877";
        const char* digital_good_name = "BuyTK";
        const char* digital_good_sku = "AppTK-1";
        const char* metadata = "something";
        const char* purchase_app_icon = "something";
        const char* purchase_app_name = "TKAppPurchase";
    
        unsigned request_id = 0;
        if (paymentservice_purchase_request(digital_good_id, digital_good_sku, digital_good_name,metadata, purchase_app_name, purchase_app_icon, get_window_group_id(), &request_id) != BPS_SUCCESS) {
             fprintf(stderr, "Error: purchase request failed.\n");
        }
        fprintf(stderr,"pass payment service request");
        while (!exit_application) {
                bps_event_t *event = NULL;
                bps_get_event(&event, -1);
    
                if (event) {
                    if (bps_event_get_domain(event) == paymentservice_get_domain()) {
                              if (SUCCESS_RESPONSE == paymentservice_event_get_response_code(event)) {
                                  if (PURCHASE_RESPONSE == bps_event_get_code(event)) {
                                      onPurchaseSuccess(event);
                                      unsigned request_id = 0;
                                      if (paymentservice_get_existing_purchases_request(false, get_window_group_id(), &request_id) != BPS_SUCCESS) {
                                         fprintf(stderr, "Error: get existing purchases failed.\n");
                                      }
                                  } else
                                      onGetExistingPurchasesSuccess(event);
                              } else {
                                  failureCommon(event);
                              }
                          }
                    if (bps_event_get_domain(event) == navigator_get_domain()) {
                            if (NAVIGATOR_EXIT == bps_event_get_code(event)) {
                                exit_application = 1;
                            } else if (NAVIGATOR_SWIPE_DOWN == bps_event_get_code(event)) {
                                if (paymentservice_purchase_request(digital_good_id, digital_good_sku, digital_good_name,
                                        metadata, purchase_app_name, purchase_app_icon, get_window_group_id(), &request_id) != BPS_SUCCESS) {
                                   fprintf(stderr, "Error: purchase request failed.\n");
                                }
                            }
                       }
                }
        }
    
        bps_shutdown();
        screen_destroy_window(screen_win);
        screen_destroy_context(screen_ctx);
    }
    

    Thank God,
    Finally, I resolve this problemm...
    It's windows_group_id...

    I use cocos2dx...
    It is documented here
    http://www.cocos2d-x.org/issues/1015

    I hope it's useful for others who have the same problem...
    Nice to share...

    MaMom

  • Payment Service Local Test

    Hello

    I use of api payment Service 1.5 and cannot test local.

    "PaymentEngine.setConnectionMode (PaymentEngine.CONNECTION_MODE_LOCAL)" is found in api 1.0 but not availabe in 1.5 api. any suggestions would be very helpful.

    http://supportforums.BlackBerry.com/T5/Java-development/payment-service-SDK-1-5-testing/m-p/1336045#...

  • Payment service - do not pick up after purchase

    Hello

    I implemented the Service of payment in accordance with the following documentation...

    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/paymentservice/checki...

    Buying works fine and license keys are stored in a QSetting so persists as long as the user has the application installed on the device. Once the user removes the application, I need to recover after purchase, but the above code fails! All previous purchases are not retrieved.

    In the literature, he mentions the following:

    For these scenarios, it is recommended to provide a manual way for users to recover after shopping (by using a menu or button on the screen) or perform queries periodicals usinggetExistingPurchases (true).

    What is the approach to take, any suggestion of implementation to avoid manual retreival?

    This is part of my app code:

    Page
    {
        onCreationCompleted:
        {
            // Connection mode set to production !!!
            rootPaymentManager.setConnectionMode(1);
            rootPaymentManager.requestExistingPurchases(false);
        }
        ....
    
        attachedObjects: [
    
            PaymentManager
            {
                id: rootPaymentManager
    
                onExistingPurchasesFinished:
                {
                    if (reply.errorCode == 0)
                    {
    
                        for (var i = 0; i < reply.purchases.length; ++ i)
                        {
                            LicenceManager.licencePurchase(reply.purchases[i].receipt["digitalGoodSku"]);
                        }
                    }
                    else
                    {
                        console.log("Error: " + reply.errorText);
                    }
                }
            }
        ]
    }
    

    Finally found the issue...  He did take a few hours of digging since this issue was caused by faulty code from the example Freemium app.

    https://github.com/BlackBerry/Cascades-community-samples/BLOB/master/FreemiumSampleApp/assets/main.q...

        attachedObjects: [
    
            PaymentManager
            {
                id: rootPaymentManager
    
                onExistingPurchasesFinished:
                {
                    if (reply.errorCode == 0)
                    {
    
                        for (var i = 0; i < reply.purchases.length; ++ i)
                        {                        // Faulty line of code
                            //LicenceManager.licencePurchase(reply.purchases[i].receipt["digitalGoodSku"]);
    
                            // Fixed line of code                        LicenceManager.licencePurchase(reply.purchases[i]["digitalGoodSku"])
                        }
                    }
                    else
                    {
                        console.log("Error: " + reply.errorText);
                    }
                }
            }
        ]
    
  • Should I me Integrator unique ID to multiple requests for payment service provider?

    Hello-

    My company manages the management of subscriptions for several digital content publishers. We are putting in place direct payment API signInWithCredentials, and. Al for a particular provider and I'm curious to know how extend us these same APIs to handle applications from different vendors?

    Do I need an integrator ID from Adobe to the unique address for each provider, or are they assigned us to a unique ID? If a unique ID, how to direct calls to the database specific to the seller? How did Integrator ID related to the URL/Service Service Auth URL?

    Thank you

    William

    N ° the API contains "appId" and "appVersion" on each method so that your application can detect which application requests information of law.  Make sure that breast of the DPS App Builder, you check the box "Send AppId and AppVersion".  There is no reason to ever do not select no not this box - even if at the end of the day, you choose to ignore the additional parameters.

    While I'm on the subject... also ignore the dates of coverage and Don ' t bother sending ProductID in the body of the request for payment.  This has caused a lot of confusion.  If you really know what they are and why a digital system of their desire, then go ahead.  But for 99% of the use cases, they are useless.

  • Payment service returns 'purchase successful' without selecting the mode of payment (in sandbox mode)

    Hello

    I'm testing in-app purchase in my app (BB10). I added my id in sandbox mode. I go through all the messages of payment and without selecting any mode of payment (paypal/credit card), it returns successfully. is this correct behavior?

    There is free of charge with the sandbox test, so flow you state sounds as it should. Direct mode test load actually does more validation would occur before returning a result.

  • Payment Service ERROR Tutorial!

    Hey...

    I followed and copied the whole tutorial using flash builder 4.6

    First, I was getting an error THAT PPS channel not found... so I thought it was a problem with emulator vs office, so I tried it in the emulator...

    Now I do not understand this error anymora but I get these:

    [SWF] qnx.system.QNXDevice - 92 971 bytes after decompression
    [SWF] qnx.net.QNXNetwork.ane - 9 108 bytes after decompression

    param count mismatch
    virt params = 1 optional = 0 mx.resources::IResourceManager/mx.resources:IResourceManager::addResourceBundle()
    on params = 2 Optional = 1 mx.resources::IResourceManager/mx.resources:IResourceManager::addResourceBundle()
    VerifyError: Error #1053: Illegal substitution of ResourceManagerImpl in mx.resources.ResourceManagerImpl.

    at mx.resources::ResourceManager$/getInstance() [C:\autobuild\3.x\frameworks\projects\framework\src\mx\resources\ResourceManager.as:95]
    at mx.rpc::AbstractInvoker() [C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:73]
    at mx.rpc.http::HTTPService() [C:\autobuild\3.x\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:82]
    to Payment / initializeUI () [C:\Users\asd\Desktop\Nueva carpeta\Nueva carpeta\Payment\src\Payment.as:96]
    at Payment() [C:\Users\asd\Desktop\Nueva carpeta\Nueva carpeta\Payment\src\Payment.as:53]

    The tutorial is copied EXACTLY as IT IS on THE WEB PAGE... so I don't know what am I supossed to do or where the problem is maybe

    Any help?

    You run in debugging. Looks like it might have crashed. I would check you have ANE good added and 'The platform specific libraries add to library path' are checked for property projects in FB.

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

  • Testing payment service - receive does not PURCHASE_RESPONSE after buying direct

    Currently I'm working on a game with goods in application and I read through the direct test 'how to '.

    I tried the sample application, and I have my app works with a local connection:

    paymentservice_set_connection_mode(true);
    

    All my app logic works as expected.

    The problem starts when I want to LIVE test, if it works.

    When I LIVE test according to this Live test tutorial

    And I change connection_mode to:

    paymentservice_set_connection_mode(false);
    

    The purchase dialog appears, I fill my password etc. Click on PURCHASE and screen starts with the circle and that he "treats", after a second or two, he Faints, but I don't get all the events 'successful purchase.

    I wanted to ask if this is normal behavior with sandbox & Live test? If Yes, is it so much, I have TO first release the App and the goods in application until I can receive events? Or I do something wrong?

    Test with:

    PlayBook with OS 2.1.0.1526

    DNK BB 2.1.0

    Thx for your suggestions.

    Any help appriciated.

    Hi, thanks for the response.

    In the meantime, I was able to put in apps successfully implemented and test them in Sandbox Mode.

    He was going on about the Playbook.

    I guess I got a little problem in my code, which was the cause.

  • BlackBerry AppWorld Service payment for providers in Nigeria

    Hello.

    Please how to set up the payment as a global seller of app service.

    I'm a developer in Nigeria. PayPal does not accept registration from Nigeria.

    So please any suggestions on how to make use of the app world payment service will be highly appreciated.

    While I can develop more applications in order to make money in the app world.

    Thank you.

    PayPal is set up it is for security reasons. Payment processing is done by Digital River, who also manages the product for sellers of BlackBerry App World.

    You can earn money by setting a price for your application. Payments-app is a way to monetize.

    Other methods of monetization to consider:

    • Price of the premium for the app
    • Advertising
    • Freemium (two versions of the app, free/paid)
    • Develop applications for businesses, billing customers, free in App World
    • Develop the app in conjunction with a web service
    • Sponsorship of the app

    I'm sure that there are companies in Nigeria who want to pay you to do an application for them. You can even make more of $$$ that way.

    Good luck to you, Sir.

  • Request payment environment Service &amp; commissioning

    Hi guys,.

    I am really enjoy BlackBerry payment service. But I'm too new for her.

    In fact I don't know where I have to go.

    Anyway, here's the download link:

    http://us.BlackBerry.com/developers/platform/paymentservice.jsp

    I have several questions about the payment Service:

    1. What do I need to work with the payment Service?

    2. what version of operating system supports the payment Service? It works on OS 4.7.0?

    3. is it possible to test it on the Simulator?

    4. If I have the paypal account, can I catch the transaction on my web server?

    5. can you suggest me sample code?

    Thank you.

    These are dealt with in the feature and technical presentation - guide to payment Service SDK found here: http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=BlackBerry+Payment+Serv...

Maybe you are looking for