PaymentConnectionMode

Since: BlackBerry 10.0.0

#include <bb/platform/PaymentConnectionMode>

To link against this class, add the following line to your .pro file: LIBS += -lbbplatform

Set of Payment API connection modes.

The Payment API can be put into bb::platform::PaymentConnectionMode::Test connection mode for easier testing.


Overview

Public Types Index

enum Type

Test = 0, Production = 1

Public Types

Type

Set of Payment API connection modes.

Since:

BlackBerry 10.0.0

Test = 0

Testing mode that bypasses the Payment server.

In this mode, the application does not contact the Payment server for any transactions. For purchases, a simulated purchase screen is displayed, allowing the user to choose the result of the purchase. For retrieving purchase history, only simulated successful purchases are returned. For other requests, such as PaymentManager::requestPrice(), responses will contain simulated data. This mode is useful for testing how your application handles the possible results without requiring network connections or currency.

Note:

Production code should not use this mode.

Since:

BlackBerry 10.0.0

Production = 1

Standard production mode.

When in this mode, purchases and retrievals of existing purchases proceed normally, contacting the Payment server as necessary. This is the default connection mode, and applications in production should not modify it.

This is the default connection mode.

Note:

Production code should use this mode.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus