Payment getItemState() test Sandbox

IM test in Sandbox on my device. After extraction and complete purchase I check to see if the purchase has been accepted by the practice

purchase.getItemState () is Purchase.OWNED

However it is always equal Purchase.NO_VALUE_SET

It is safe to assume that once the goods are on sale and app that when buying it will be actually created to OWNED?

You are right. Sandbox tests does not create a real transaction so no purchase actually didn't get saved, that's why you see this behavior. Once purchases are made outside the sandbox, that States to purchase must return as scheduled.

Tags: BlackBerry Developers

Similar Questions

  • In payment App tests

    Hi, I followed all the steps described by the following documentation: http://docs.blackberry.com/en/developers/deliverables/20374/index.jsp?name=Development+Guide+-+Payme...

    Now I'm in the test phase and were not able to see if it works or not. When I build the arguments of purchase:

    PaymentEngine.getInstance().purchase(arguments.build());
    

    App World is implemented as planned. However, with a digital good for all, I see prices of $2.99 when I specified the price differ from each other ($ 0.99 to $ 3.99). The credit card information as a "sample" on the purchase screen. When I purchase the item, I know that it has successfully treated, but I don't know if that means it will work as expected (purchasing process) when judged by non-sandbox account.

    Please help me! Thank you!

    Yes, you should be able to use the real account sandbox if you get rid of this line.

  • Not able to download the application from the project in the tester sandbox

    Hello

    Help, please.

    Download bar file, obtain SKU and all the necessary info on the app worked before and I was able to download my app using the SKU number.

    Now I find my test by SKU number application, but I can't download it.

    What has changed?

    This one is now fixed too.

  • Import from DEV to TEST sandboxes

    Hello

    curious to know, if I use sandboxes exported from DEV, import and publish in the TRIAL, which will replace the existing customizations or will that be on top of the existing model.

    I mean, all old customizations remain the same and the new is added in new... right?

    Thank you

    Yes.

    Just try it. If something goes wrong, you can always sandbox rollback.

    Also, you can open the Enterprise Manager console and backup with sandboxes with all changes to the export.

  • Error ID 4010 with payments API

    Hello

    I have an application that uses the api native payments, I tested it with "local mode" and it works well.  I have published, but now I get an error message when you try to make a purchase:

    He had problems this purchase. Please try again or visit Blackberry App World Support for more information. (Error Id: 4010)

    The text of the actual error of paymentservice_event_get_error_text does not help much:

    "He had problems. Please try again. {4010} ".

    So in a panic, I pulled the App!  What is this error code?  How can I debug this?

    The actual call I make is:

    int res = paymentservice_purchase_request(apProductID, NULL, NULL,
                NULL, NULL, NULL, get_window_group_id(), &mPendingPurchaseRequestId);
    

    with apProductID being a string representation of the number of virtual good details on the portal provider "ID".

    The status of the App is "approved", and the virtual condition is "Up for Sale".

    Thank you

    An update, the 4010 error is caused by the way empty for the content ID and SKU values when you try to make a purchase. Adding value has been confirmed with this dev (off wire) to solve the problem.

  • Why me charged 3 times for Garageband?

    I recently bought garageband (the app, no in-app purchases) using my debit card and I was charged 3 times for her. I don't know about the payment of test they do on your account. Why what happened? Is there a way to see the transactions that I did? I also know the download history, but I'm looking for something like a recipe section.

    You will need to connect to your account information in the iTunes app to view the history of purchases to iTunes and the Mac App Store, broken down by individual invoices.

    By the end of 2012 mini Mac, OS X El Capitan 10.11.3; Apple Watch, 38 mm silver AL, Watch OS 2.1; iPad 2 Air & iPhone 6 + iOS 9.3

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

  • Testing with sandbox and In - App purchases no longer works

    Hi, I'm currently testing in-app purchases...
    It worked well for a while, but now when I try to access the app on AppWorld with the contentID or the SKU

    I get this error message: "we are unable to connect to blackberry appworld please make sure that your device is connected to the wireless network and try again.

    I tried downloading a new project and is always the same.

    As for in-app purchases, I have an older version already installed that I could successfully make a purchase using the accounts of sandbox, but now I just can enumerate all purchases available from the server of the RIM, but when I try to 'buy' it returns an error: "Content not found, ID:XXXXX" or something like that.

    Anyone know what is happening?

    I was just notified that the payment of Sandbox server is currently down, which is the cause of these issues. I'll post to this Commission as soon as I hear that it is resolved.

  • How live test payment with Dev Alpha B SDK?

    Hello

    I'm doing some tests of payment SDK for a new application, in accordance with the instructions for the playbook (link below), it is quite possible...

    http://supportforums.BlackBerry.com/T5/BlackBerry-world-development/how-to-live-testing-the-payment-...

    How can I do this using my z10 or dev unit alpha.   I followed the instructions, creating a sandbox account using my bb id, and by creating a project for the appropriate platform version, the problem is that I have no way to find or my new downloding and always in accordance with the project of the appworld to test.

    Help would be greatly appreciated...

    Thank you

    You do not know, it is relevant here, but if you have really no way even to find the app, perhaps missing the part on the use of development Mode in the client.

    If you activate the Mode of development on the Z10 (or DA) in Control Panel, and then in the settings of the client application BBWorld there will be a new page appears, also called development Mode. In this page, you can enter the digital product for your application id (you will find on the first page of the application when you edit his entry in the provider portal, under manage the products and then clicking on the pencil icon).

    Provide you here and click the button, and it brings you to the entrance of the application. If you can actually see that or not seems to depend on black magic. Above all, I can see my apps, but I just can't download them from there if they are not approved.

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

  • Payment SDK deployment and testing Confusion

    I'm having a difficult time deployment and testing my application that uses the SDK to payment.

    I followed the documentation: I have app was transferred to App World then created a BlackBerry ID and registered under andbox BlackBerry ID e-mail account. I then conclusive to download the go to App World in opening and typing ALT + STST and then entered the code my application SKU. This resulted in the correct version being downloaded.

    However, when my application starts now give the error message 'Module 'paymentapi' ' could not be found even on devices with App World installed 3.1. I thought the whole point of payment SDK help is that he can count on being present?

    Advice or recommendations would be greatly appreciated.

    I found the answer to my question, shortly after that I posted, so let me share the answer with anyone interested.

    The key is to include paymentapi.jar in the tab export in Eclipse, as described in this article of resources:

    http://supportforums.BlackBerry.com/T5/Java-development/working-with-libraries-shared-bundled-releas...

    This solved the problem for me

  • Error in payment on the test device

    I use payment API 1.8. I wonder if test on the device, I should receive a payment error when you try to buy. Is it because only its in draft mode or because something does not work properly? I got an unknown error and also found digital assets.

    Hello

    You still see this problem?  If so, please tell me the name of your app and I'll look into it.

    Thank you

    Jordan

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

  • Hello, now that I am back to my annual plan with payment each month creative programs cloud, made the payment came the confirmation, however downloading the programs are always identified as a test version, update this information

    Hello, now that I am back to my annual plan with payment each month creative programs cloud, made the payment came the confirmation, however downloading the programs are always identified as a test version, update this information?

    allow 1 day working pst for your payment to process.

    After this time, if there is still a problem, Troubleshooting FAQ: what should I do if I have a subscription, but my application acts as if I had a trial?

  • We get an error when you test the payment flows. Can you help me please?

    I'm getting this when testing a payment flow:

    screenshot.png

    What should I do?

    Thank you, Diego.

    The form is corrupt. This is usually caused by

    (a) spoil the code tries to adapt the design.

    (b) you change things in the form to get him to change the code. Be aware that the form code can change when you use the form builder. You need to update manually if you change things in the form causing it to change ID or field names.

    (c) you have removed the form in the form designer.

Maybe you are looking for