net.rim.blackberry.events.PaymentErrorEvent

PaymentErrorEvent

Properties | Constants


Packagenet.rim.blackberry.events
Classpublic class PaymentErrorEvent
InheritancePaymentErrorEvent Inheritance flash.events.ErrorEvent

This event is dispatched by PaymentSystem if a payment service method invocation fails.

Class information:
PlayBook Tablet OS Version:   1.0.6



Public Properties

 PropertyDefined By
  errorID : int
[override] [read-only] Possible error IDs: 1 - User canceled.
PaymentErrorEvent

Public Constants

 ConstantDefined By
  CANCEL_SUBSCRIPTION_ERROR : String = cancelSubscriptionError
[static] This event is thrown by PaymentSystem if the cancelSubscription request fails.
PaymentErrorEvent
  CHECK_EXISTING_ERROR : String = checkExistingError
[static] This event is thrown by PaymentSystem if the checkExisting request fails.
PaymentErrorEvent
  GET_EXISTING_PURCHASES_ERROR : String = getExistingPurchasesError
[static] This event is thrown by PaymentSystem if the getExistingPurchases request fails.
PaymentErrorEvent
  GET_PRICE_ERROR : String = getPriceError
[static] This event is thrown by PaymentSystem if the getPrice request fails.
PaymentErrorEvent
  PURCHASE_ERROR : String = purchaseError
[static] This event is thrown by PaymentSystem if the purchase request fails.
PaymentErrorEvent

Property Detail

errorID


errorID:int  [read-only]
[override]

Possible error IDs:

1 - User canceled. This occurs when a user presses the cancel button.

2 - Payment system is busy. This occurs when a user attempts to purchase more than one item at a time.

3 - General payment error. There are a wide variety of errors returned from the Payment System. In this case the user is prompted with a dialog indicating the specific error code.

4 - Digital good not found. This occurs when the digital good matching the ID or SKU cannot be found.

5 - Digital good already purchased. This can occur if a user attempts to purchase a non-consumable or subscription digital good more than once.


Implementation

public function get errorID():int

Constant Detail

CANCEL_SUBSCRIPTION_ERROR


public static const CANCEL_SUBSCRIPTION_ERROR:String = cancelSubscriptionError

This event is thrown by PaymentSystem if the cancelSubscription request fails.

CHECK_EXISTING_ERROR


public static const CHECK_EXISTING_ERROR:String = checkExistingError

This event is thrown by PaymentSystem if the checkExisting request fails.

GET_EXISTING_PURCHASES_ERROR


public static const GET_EXISTING_PURCHASES_ERROR:String = getExistingPurchasesError

This event is thrown by PaymentSystem if the getExistingPurchases request fails.

GET_PRICE_ERROR


public static const GET_PRICE_ERROR:String = getPriceError

This event is thrown by PaymentSystem if the getPrice request fails.

PURCHASE_ERROR


public static const PURCHASE_ERROR:String = purchaseError

This event is thrown by PaymentSystem if the purchase request fails.