How do I set up a testing environment for BlackBerry In-App payments?

I am trying to implement app support in app BB.

Ok, I read the API / docs, and now I need to write a simple test. Here's what the API says about testing:

To test end-to-end flow of purchases without paying money, you can configure your BlackBerry ID as a test account. The test account allows you to download any application or digital goods associated with your BlackBerry App World vendor account at no cost. Local testing should be disabled for this type of testing, otherwise network connections will not be made.

From the above, I see that I need to achieve 2 goals:

  • (1) "set up your BlackBerry ID as a test account" (what that means).
  • (2) β€œLocal testing should be disabled for this type of testing” (what it means).

The API is unclear on how to do this. I can only guess that point (1) can be made on the side of my client (whom I write the application) through his AppWorld account. It's true? And I completely exclude ideas (2). Can someone point me in the right direction?

+6
source share
1 answer

And yes, the payment API is especially vague during testing, and in the latest version (1.5) RIM removed the ability to test locally, so all testing should be done through App World. Here's how:

  • Set up a sandbox account using the BlackBerry App World vendor portal
  • Download the application to the BlackBerry application world, but do not publish it , just save it and leave the status in the project
  • Also on the suppliers portal configure your digital products (everything that is available for purchase in the application).
  • On your BlackBerry, download App World and enter your sandbox account email address.
  • On any screen of the World application, press ALT + TST and enter the SKU or ID of your test application.
  • Then you can download a test version of your application (which is not available to anyone else)
  • Once the application is downloaded and installed, you can test your payments in the applications.

A bit of faff, but not too complicated once you sort the process.

+7
source

Source: https://habr.com/ru/post/903697/


All Articles