Skip to main content
Samsung Developer Program

Error Response Codes

Variable names, types, and descriptions of data triplets for IAP API request processing results.

 

Member Variable

Type

Description

mErrorCode

Integer

Error response value.

mErrorString

String

Error message.

mExtraString

String

Additional information about the results.

 

Each error name/value/description triplet:

Error Name

Error Value

Error Description

IAP_ERROR_NONE

0

Success.

IAP_PAYMENT_IS_CANCELED

1

Payment canceled.

IAP_ERROR_INITIALIZATION

-1000

Failure during IAP initialization.

IAP_ERROR_NEED_APP_UPGRADE

-1001

IAP upgrade is required.

IAP_ERROR_COMMON

-1002

Error while running IAP.

IAP_ERROR_ALREADY_PURCHASED

-1003

Error when a non-consumable product is repurchased or a subscription product is repurchased before the product expiration date.

IAP_ERROR_WHILE_RUNNING

-1004

Error when payment is requested without bundle information.

IAP_ERROR_PRODUCT_DOES_NOT_EXIST

-1005

Error when the requested item list is not available.

IAP_ERROR_CONFIRM_INBOX

-1006

If the payment result is not received after requesting payment to the server, the purchased items list should be confirmed because the payment may have occurred successfully.  
This error message appears in this situation.

IAP_ERROR_ITEM_GROUP_DOES_NOT_EXIST

-1007

Error when item group ID does not exist.

IAP_ERROR_NETWORK_NOT_AVAILABLE

-1008

Error when network is not available.

IAP_ERROR_IOEXCEPTION_ERROR

-1009

IOException.

IAP_ERROR_SOCKET_TIMEOUT

-1010

Socket timeout exception.

IAP_ERROR_CONNECT_TIMEOUT

-1011

Connect timeout exception.

IAP_ERROR_NOT_EXIST_LOCAL_PRICE

-1012

The item is not for sale in the country.

IAP_ERROR_NOT_AVAILABLE_SHOP

-1013

IAP is not serviced in the country.

  • Was this article helpful?