Encrypting PayPal's Credentials
-
Assuming you installed EFTLink in C:\eftlink. Copy all files from C:\eftlink\cores\PayPal except the jar file to C:\eftlink.
-
Open a command terminal. Go to C:\eftlink directory. Make sure you have Java in your Windows system path. If not set it first.
-
First, create the key store file that will hold the encryption and decryption key. Execute the command below.
The script creates a data directory on C:\eftlink with the paypal.keystore file in it.
encrypt-paypal.bat -k
-
You can now encrypt the client ID and client secret of both the location and payment API. On the command terminal, execute the command below.
This will ask you to enter the client ID and client secret of your location and payment API respectively.
The script writes the encrypted values together with the initialization vector into paypal_dynamic.properties file.
encrypt-paypal.bat -e
Note:
When creating the data directory for the keystore, access to the folder is restricted automatically. Therefore, the same user account as will be used to run the application should be used during this process. Use of the administrator account at this point may lead to the folder being inaccessible to the EFTLink application at runtime.