Skip to main content
Samsung Developer Program

In-App Purchase Operating Modes

Testing In-App Purchase (IAP) purchase and payment during development must ensure that actual financial transactions such as billing end-user credit cards do not result. When you instantiate the IAP Helper, you set the IAP operating mode, which affects purchase and payment processing but does not affect the offered and purchased items list processing.

Commercial Mode

Normal operating mode AFTER you distribute your service app via the Samsung Galaxy Apps Store that includes: 

  • Normal processing of all IAP method calls.
  • IAP item purchase and payment processing (startPayment() method) with actual financial transactions (such as billing end-user credit cards).

CAUTION: Invoking commercial mode PRIOR to distributing your service app will block all processing of all IAP method calls and will result in the Product Does Not Exist popup (below). 

Developer Test Mode (Success)

Test operating mode PRIOR to Galaxy Apps Store distribution that includes:

  • Normal processing of all IAP method calls.
  • IAP item purchase and payment processing WITHOUT financial transactions.
Developer Test Mode (Failure)

Test operating mode PRIOR to Galaxy Apps Store distribution that includes:

  • Automatic failure of IAP item purchase and payment processing (startPayment() method) and the Unknown Error popup (below).
  • Normal processing of all other IAP method calls.

During development (prior to service app distribution), it is recommended to test your service app under various conditions in both developer test modes. In test mode (failure), making a startPayment() call results in the Unknown Error popup. In commercial mode (not to be used for development), all IAP calls result in the Product Does Not Exist popup.

Unknown Error Popup

SamsungIAP_Overview_UnknownErrorPopup_Screenshot.png

Product Does Not Exist Popup

SamsungIAP_Overview_ProductDoesNotExistPopup_Screenshot.png

CAUTION: After development, you must change to commercial mode before submitting your service app for certification and distribution, or actual financial transactions will not occur.

  • Was this article helpful?