How to Migrate a Payment Application to Q2Premium: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
# Get path of native library files:
== Overview ==
 
This guide details the steps for migrating a payment application to the Q2Premium platform, with a focus on handling native library files.
If an application contains native library files, the path to the native library can be obtained using this statement.
== Step 1: Obtain Path to Native Library Files ==
 
* If your application uses native libraries (such as ''''.so'''' files in Android), you need to find their paths in the new environment.
* Use the following code snippet to retrieve the path of a native library file:
<syntaxhighlight lang="java" >
getApplicationInfo().nativeLibraryDir+"/xxx.so".
getApplicationInfo().nativeLibraryDir+"/xxx.so".
 
</syntaxhighlight >
for example in EMVKernel invoking, when get the path of libEMVKernal.so, snippet code is:
For instance, to get the path of ''''libEMVKernal.so'''', use:
<syntaxhighlight lang="java" >
<syntaxhighlight lang="java" >
tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";
tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";
</syntaxhighlight >
</syntaxhighlight >
Replace ''''"name_of_library.so"'''' with the actual name of your native library file.
== Step 2: Implement the Code in Your Application ==
* Integrate this code snippet into your application's source code where the path of the native library is required.
* This is particularly important for functionalities that rely on these native libraries, such as EMV kernel processing.
'''Note''': Ensure that your application's permissions and settings are appropriately configured for Q2Premium. Compatibility with native libraries may depend on the specific architecture and version of the Q2Premium platform.

Revision as of 23:09, 10 January 2024

Overview

This guide details the steps for migrating a payment application to the Q2Premium platform, with a focus on handling native library files.

Step 1: Obtain Path to Native Library Files

  • If your application uses native libraries (such as '.so' files in Android), you need to find their paths in the new environment.
  • Use the following code snippet to retrieve the path of a native library file:
getApplicationInfo().nativeLibraryDir+"/xxx.so".

For instance, to get the path of 'libEMVKernal.so', use:

tmpEmvLibDir = this.getApplicationInfo().nativeLibraryDir + "/libEMVKernal.so";

Replace '"name_of_library.so"' with the actual name of your native library file.

Step 2: Implement the Code in Your Application

  • Integrate this code snippet into your application's source code where the path of the native library is required.
  • This is particularly important for functionalities that rely on these native libraries, such as EMV kernel processing.

Note: Ensure that your application's permissions and settings are appropriately configured for Q2Premium. Compatibility with native libraries may depend on the specific architecture and version of the Q2Premium platform.