Skip to main content
Samsung Developer Program

IAP Helper Result Status Codes

The ErrorVo object contains information about the processing of IAP Helper requests; the object is returned in IAP Helper callback listeners

 

The following IAP Helper API request calls specify their callback listeners that receive call processing results in the ErrorVo object. 

startPayment() OnPaymentListener
consumePurchasedItems() OnConsumePurchasedItemsListener
getOwnedList() OnGetOwnedListListener
getProductsDetails() OnGetProductsDetailsListener

 

An ErrorVo object in a returned listener contains an result status code and message, and additional information that describes the results of processing the API request.

 

Parameter Type Description
mErrorCode Integer Value of the result status code
mErrorString String Text of the result status message
mExtraString String Additional information about the API call results

 

Result States

Code

Message

Description

0

IAP_ERROR_NONE

After any IAP Helper request, the request was successfully process as specified.

1

IAP_PAYMENT_IS_CANCELED

After a startPayment() request, payment was canceled during an in-app item purchase and payment transaction.

-1000

IAP_ERROR_INITIALIZATION

After a getInstance() request, a failure occurred and the IapHelper object was not initialized.

-1001

IAP_ERROR_NEED_APP_UPGRADE

After a getInstance() request, Samsung IAP Helper upgrade is required.

-1002

IAP_ERROR_COMMON

After any IAP Helper request, an error occurred while IAP Helper was running.

-1003

IAP_ERROR_ALREADY_PURCHASED

A startPayment() request was not completed because it specified either:

  • A  non-consumable in-app item that was previously purchased by the user.
  • A subscription in-app item while the item's current subscription is active.

-1004

IAP_ERROR_WHILE_RUNNING

An IAP Helper request did not specify one or more required parameters.

-1005

IAP_ERROR_PRODUCT_DOES_NOT_EXIST

An IAP Helper request specified or refers to an in-app item that is either: not currently registered to the Android app, or not available for sale.

-1006

IAP_ERROR_CONFIRM_INBOX

After a startPayment() request, the response cannot be provided to the Android app (for example, due to network problems). However, the purchase and payment transaction may or may not have been successful.

-1007

IAP_ERROR_ITEM_GROUP_DOES_NOT_EXIST

An IAP Helper request directly specified an in-app item or indirectly referred to an item for which the item's group ID does not exist.

-1008

IAP_ERROR_NETWORK_NOT_AVAILABLE

After any IAP Helper request, the request could not be successfully completed due to network problems.

-1009

IAP_ERROR_IOEXCEPTION_ERROR

After any IAP Helper request, the request could not be successfully completed because there was an I/O exception.

-1010

IAP_ERROR_SOCKET_TIMEOUT

After any IAP Helper request, the request could not be successfully completed because there was a socket timeout exception.

-1011

IAP_ERROR_CONNECT_TIMEOUT

After any IAP Helper request, the request could not be successfully completed because there was a connect timeout exception.

-1012

IAP_ERROR_NOT_EXIST_LOCAL_PRICE

A startPayment() request specified an item is not for sale in the user's country.

-1013

IAP_ERROR_NOT_AVAILABLE_SHOP

After any IAP Helper request, the request could not be successfully completed because the Samsung IAP service is not available in the user's country.

 

  • Was this article helpful?