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:
BlackBerry 10 Version:   10.0.0



Public Properties

 PropertyDefined By
  errorCode : int
[read-only] Possible error code values: 1 - User canceled the request.
PaymentErrorEvent
  errorID : int
[override] [read-only] Possible error code values: 1 - User canceled the request.
PaymentErrorEvent
  errorInfo : String
[read-only] Get the error info.
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

errorCode


errorCode:int  [read-only]

Possible error code values:

1 - User canceled the request. This occurs when a user presses the cancel button. ErrorInfo will not be populated.

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

3 - Payment Service failed. See ErrorInfo and ErrorText for more detail.

8 - No network connectivity on device. User could be directed to Network Connections in Settings to potentially fix the problem. ErrorInfo will not be populated.


Implementation

public function get errorCode():int

errorID


errorID:int  [read-only]
[override]

Possible error code values:

1 - User canceled the request. This occurs when a user presses the cancel button. ErrorInfo will not be populated.

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

3 - Payment Service failed. See ErrorInfo and ErrorText for more detail.

8 - No network connectivity on device. User could be directed to Network Connections in Settings to potentially fix the problem. ErrorInfo will not be populated.


Implementation

public function get errorID():int

errorInfo


errorInfo:String  [read-only]

Get the error info. In the event of an error, this method returns extra information to further identify the error that occurred.


Implementation

public function get errorInfo():String

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.





comments powered by Disqus