net.rimlib.blackberry.api.paymentsdk
Interface ResultCodes

All Known Subinterfaces:
ExistingPurchasesResult, PriceSet, PurchaseResult, Result
All Known Implementing Classes:
AppWorldUpdateRequired, DigitalGoodNotFoundException, IllegalApplicationException, PaymentException, PaymentServerException, SimpleStringResult, UserCancelException

public interface ResultCodes

Constants returned from PaymentException.getFailureReason() when a call fails.


Field Summary
static int REASON_APP_WORLD_NOT_CORRECT_VERSION
          Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the version of App World on the device is not the required version.
static int REASON_ARGUMENTS_ERROR
          Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the digital arguments passed to the Payment Service SDK were not correct.
static int REASON_CANCELED
          Constant that is returned from the PaymentException.getFailureReason() method when a result failed because it was canceled by the user.
static int REASON_GOOD_NOT_FOUND
          Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the digital good being purchased was not found on the App World server.
static int REASON_ILLEGAL_APPLICATION
          Constant that is returned from the PaymentException.getFailureReason() method when a result failed because the calling application was not installed using App World.
static int REASON_NONE
          Constant that is returned from the PaymentException.getFailureReason() method when a result is successful.
static int REASON_SERVER_ERROR
          Constant that is returned from the PaymentException.getFailureReason() method when a result failed because of a server error.
static int REASON_UNKNOWN
          Constant that is returned from the PaymentException.getFailureReason() method when a result failed for an unknown reason.
 

Field Detail

REASON_NONE

static final int REASON_NONE
Constant that is returned from the PaymentException.getFailureReason() method when a result is successful.

See Also:
Constant Field Values

REASON_UNKNOWN

static final int REASON_UNKNOWN
Constant that is returned from the PaymentException.getFailureReason() method when a result failed for an unknown reason.

See Also:
Constant Field Values

REASON_CANCELED

static final int REASON_CANCELED
Constant that is returned from the PaymentException.getFailureReason() method when a result failed because it was canceled by the user.

See Also:
Constant Field Values

REASON_SERVER_ERROR

static final int REASON_SERVER_ERROR
Constant that is returned from the PaymentException.getFailureReason() method when a result failed because of a server error.

See Also:
Constant Field Values

REASON_ILLEGAL_APPLICATION

static final int REASON_ILLEGAL_APPLICATION
Constant that is returned from the PaymentException.getFailureReason() method when a result failed because the calling application was not installed using App World.

See Also:
Constant Field Values

REASON_GOOD_NOT_FOUND

static final int REASON_GOOD_NOT_FOUND
Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the digital good being purchased was not found on the App World server.

See Also:
Constant Field Values

REASON_APP_WORLD_NOT_CORRECT_VERSION

static final int REASON_APP_WORLD_NOT_CORRECT_VERSION
Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the version of App World on the device is not the required version. The developer receiving this error should call PaymentEngine.upDateAppWorld() after catching and handling this error. This will leave your application and launch the browser to the AppWorld download page. Create user messages and flow appropriate for your application.

See Also:
Constant Field Values

REASON_ARGUMENTS_ERROR

static final int REASON_ARGUMENTS_ERROR
Constant that is returned from the PaymentException.getFailureReason() method when a call failed because the digital arguments passed to the Payment Service SDK were not correct.

See Also:
Constant Field Values