In this mode, you can test the application for real user authentication
and simulate the payment through the test server, which does not involve
real money transaction. This could be tested by adding the TEST_MODE.TXT
file under the res
folder
and including it in the jar file of the MIDlet.
In-app simulation in test mode using Nokia Publish Server works only for product IDs which has Operator Billing as payment method.
Note: In test mode no real money transaction happens. Credit card billing is not supported in this mode.
To test with Nokia publish server , select “Test with Nokia Publish Server (Using Network Connection)” radio button and then click Apply.
In test mode, the Nokia Publish server checks for MCC/MNC values to verify if Operator Billing is enabled for the product IDs used. Hence it is required to configure MNC/MCC values appropriately using Mobile Network Settings.
For a detailed list of Operator Billing enabled MCC/MNC values, refer to the Nokia Publish Site.
The Syntax for TEST_MODE.TXT
is as follows:
testserver
|
The server works as if in production mode, but does not process payments. Products in Nokia Store can have different restoration policies. Some products may not be restorable at all. The Normal test mode means that the restoration policy that has been configured to Nokia Store for the product will be used. |
testserver
|
The server treats all purchases as first-time purchases, and never converts purchases to restorations. You can purchase the same item repeatedly. |
testserver
|
The server always returns failure after payment confirmation. This works only for purchase and not for restore. |
testserver
|
The server converts already purchased items to restorations. To simulate this, you must purchase an item at least once. After the first purchase, the item is marked as restorable (with any IMEI or account) and subsequent purchases are converted to restorations. |
testserver |
This should behave as in for testMode=normal . |
Note: If TEST_MODE.TXT file is empty, then it defaults to testMode=normal.