net.rimlib.blackberry.api.paymentsdk
Interface ResultCodes

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

public interface ResultCodes


Field Summary
static int REASON_APP_WORLD_NOT_CORRECT_VERSION
          Constant that is returned from the #getFailureReason() method when a call failed because the version of AppWorld on the device is less than the required version.
static int REASON_ARGUMENTS_ERROR
          Constant that is returned from the #getFailureReason() method when a call failed because the digital arguments passed to the PS SDK were not correct.
static int REASON_CANCELED
          Constant that is returned from the 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 #getFailureReason() method when a call t 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 getFailureReason method when a result failed because the calling application was not installed via App World 2.1.
static int REASON_NONE
          Constant that is returned from the getFailureReason method when a result is successful.
static int REASON_SERVER_ERROR
          Constant that is returned from the getFailureReason method when a result failed because of a server error.
static int REASON_UNKNOWN
          Constant that is returned from the 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 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 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 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 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 getFailureReason method when a result failed because the calling application was not installed via App World 2.1.

See Also:
Constant Field Values

REASON_GOOD_NOT_FOUND

static final int REASON_GOOD_NOT_FOUND
Constant that is returned from the #getFailureReason() method when a call t 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 #getFailureReason() method when a call failed because the version of AppWorld on the device is less than the required version. The developer receiving this error should call PaymentEngine.upDateAppWorld() after catching and handling this error.

See Also:
Constant Field Values

REASON_ARGUMENTS_ERROR

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

See Also:
Constant Field Values


Copyright © 2011 Research In Motion Limited. All Rights Reserved.