Skip to main content
Samsung Developer Program

Item Purchase Processing Modes

OpenIAB.samsungIapMode(int MODE) supports three Samsung IAP modes that control how requested commercial item purchases are processed. To test the service under various conditions or production testing during development, Samsung recommends that you test your service app under all three test modes. 

Caution: Before releasing your service app for store distribution, set it to production mode. In either test mode, no financial transactions will occur after any item purchase request.

In Developer Test mode, each consumable item can be repurchased at any time, each non-consumable item can be repurchased 10 minutes after the previous purchase, and each auto-recurring subscription item can be repurchased 2hours after the previous purchase. Each non-recurring item can be repurchased after its specified time of expiry (non-recurring items are not available in IAP v5.0 and later).

Test Success Mode

IAP MODE TEST SUCCESS 1

This test mode always returns successful results. The parameter value is 1.

OpenIAB.samsungIapMode(IAP MODE TEST SUCCESS); // Developer Test Mode (Success) 
Test Failure Mode 

IAP MODE TEST FAIL -1

This test mode always returns failed results. The parameter value is -1.

OpenIAB.samsungIapMode(IAP MODE TEST FAIL); // Developer Test Mode (Failure)
Production Mode

This is the mode in which the actual payment process occurs. When releasing your application, make sure to set it to production mode.

IAP MODE COMMERCIAL 0

The parameter value is 0.

OpenIAB.samsungIapMode(IAP MODE COMMERCIAL); // Production Mode
  • Was this article helpful?