Upgrading Pay Money Web App from v3.9.1 to version v4.0
Version Upgrade
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 both applications. So, handle with care.
Please ensure that you have a backup of all your files and databases before proceeding with the upgrade. This precautionary measure will help you restore your applications to their previous state in case any issues arise during the upgrade process.
Important Note: Paymoney version 4.0.0 now supports the latest PHP version, 8.1.0. If you wish to upgrade from Paymoney version 3.9.1 to 4.0.0, it is necessary to update your server's PHP version to 8.1.0 or a higher compatible version.
-
STEP-1: To upgrade from version 3.9.1 to the latest version 4.0 of Pay Money, first, log in to your cPanel.
-
Then, go to File Manager->public_html. or the Subdomain where your script is located at.
-
Select all the files and folders except the
.env file, .htaccess, public folder & Modules
and then delete the selected files. -
Now select all the files and folders from the upgraded version folder except
.env, .htaccess, public folder & Modules
and paste them into the Project root.
-
-
STEP-2: Please ensure you have a backup of your Public folder stored in a separate location.
-
Delete all the contents inside your current Public folder. Afterward, copy and paste the following folders from the latest version 4.0.0:
public/admin/*
public/dist/*
public/frontend/*
public/user/*
-
Additionally, you need to relocate specific assets from the previous Public folder to the designated locations:
- Move contents from
"public/images/logos/"
to"public/uploads/logos/"
- Move contents from
"public/user_dashboard/profile/"
to"public/uploads/user-profile/"
- Move contents from
"public/user_dashboard/profile/thumb/"
to"public/uploads/user-profile/thumb/"
- Move contents from
"public/uploads/userPic/"
to"public/uploads/user-profile/"
- Move contents from
"public/user_dashboard/merchant/"
to"public/uploads/merchant"
- Move contents from
-
Copy and paste this folders (Addons & BlockIo) specifically
Modules/Addons (v4.0.0)
Modules/BlockIo(v4.0.0)
Please make sure to follow these steps carefully while upgrading your application.
-
-
STEP-3: You need to update your database. To update, follow the steps below:-
-
Open or download the SQL file from the location - (
storage/schema/db_changelog.sql
) -
Now, login to PHPMyAdmin from your browser & select the project database name.
-
After downloading the SQL file, open it with any editor(vscode, notepad++, sublime text, etc) & copy the SQL file text, and paste it like the following screenshot.
-
Click on the ‘Go’ button to continue. (Make sure you have unchecked that display below)
-
-
STEP-4: Open .env in a text editor and change the variables
APP_VERSION=3.9.1
toAPP_VERSION=4.0
.Additionally, remove the section that mentionsTHEME=modern
. -
STEP-5:
-
Go to your project directory.
-
Log in to your SSH account. Go to the directory where the Pay Money project exists.
-
Run the following command as shown in the screenshot below.
composer du & php artisan optimize:clear
-
-
STEP-6 (optional)
Go to your admin panel now and take a look around. To continue, you might be asked for your Envato username and purchase code.
Click to verify purchase code button to verify
After verifying the purchase code your script is now successfully upgraded to the latest version 4.0
If needed, perform a hard reload in your browser by pressing Ctrl+F5
(windows) Command+Shift+R
(mac) to ensure all changes take effect.