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, it is recommended to 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, each non-recurring item can be repurchased after their specified time of expiry, and each auto-recurring subscription item can be repurchased two hours after the previous purchase.

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?