Upgrading Pay Money Mobile Application from version 1.0 to version 1.1

Note: The following upgrade procedure is for Pay Money mobile and web applications(which have not been customized). 

Applying the following steps to your customized web and mobile applications might break your both applications. So, handle with care.

 

Mobile Application
==============

1) Replace the folder “www” with the “www” folder from the latest Pay Money Mobile Application v1.1

2) Go to “www/js/common/app.js” and replace SITE_URL with your installed Pay Money web application domain/sub-domain.

Example – let SITE_URL = ‘https://paymoney.techvill.org/api/’;

Note: be careful with “http” and “https”; else your mobile application will NOT work.

3) Go to “plugins” folder and add “cordova-plugin-network-information” folder from the latest Pay Money Mobile Application v1.1. This is necessary to check network online and offline state within the mobile app.

4) You may delete “cordova-plugin-dialogs” folder in the “plugins” directory. This is unnecessary.

5) Now, you must mention the network plugin in “config.xml”. So, go to“config.xml” and add the following line inside “widget” element : –

<plugin name=”cordova-plugin-network-information” spec=”^2.0.1″ />

 

 

3) Also  add the following lines inside element <platform name=”android”>

exactly like below:-

<preference name=”android-minSdkVersion” value=”19″ />
<preference name=”android-targetSdkVersion” value=”28″ />

 

Web Application
=============

1) Go to “app/Http/Controllers/Api” and replace all the files with the “app/Http/Controllers/Api” folder files from the latest Pay Money Web Application v2.1

2) Go to “routes” folder and replace the file “api.php” with the “api.php” file from the latest Pay Money Web Application v2.1

3) Go to “app/Models/Transaction.php” file and replace the code block within “Query for Mobile Application – starts” and “Query for Mobile Application – ends” with the “app/Models/Transaction.php” file from the latest Pay Money Web Application v2.1

4) Go to “app/Models/Wallet.php” file and replace the code block within “Query for Mobile Application – starts” and “Query for Mobile Application – ends” with the “app/Models/Wallet.php” file from the latest Pay Money Web Application v2.1

 

Categories

© Copyright, Techvillage