PayPal Template
How to Install
First-time Install
- Upload the contents of the downloaded folder into the root directory of your domain. This file will include an index.php, config.php, and uploadme.sql file.
- Go to your webpanel (cPanel, CentOS Web Panel, or DirectAdmin) and create a new database. Make sure to keep track of the database name, database username, and user password.
- Enter into that database and insert the provided SQL file.
- Visit here and complete the following steps:
- Create a new application
- Visit the OAuth2 tab on the right hand side
- Add the following redirects. Make yourdomain.tld with the link to your domain
- yourdomain.tld
- yourdomain.tld/
- yourdomain.tld/cart
- yourdomain.tld/clientarea
- yourdomain.tld/session.php
- Go back to the General Information tab on the right side. Copy the Client ID and Client Secret to be used in the step below
- Go back to where you uploaded the files and edit the config.php file to include the following information:
- Edit the $db_user to include the name of your database user.
- Edit the $db_pass to include the password of your database user.
- Edit the $db_name to include the name of your database.
- Edit the $clientid to include the Client ID of your Discord Application.
- Edit the $clientsecret to include the Client Secret of your Discord Application.
- Edit the $paypal to include the email of your PayPal account.
- Edit the $ownerids to include the Discord IDs of people you want to be able to add and delete downloads.
- Edit the $downloadfoldername to include the name of the folder inside of "clientarea" where the files to download will be located.
- Edit the $filetype to include the file type you will use on ALL downloads.
- Navigate to the "cart" directory, and edit the DBController.php file. Replace the following lines:
- Edit the $user to include the name of your database user.
- Edit the $password to include the password of your database user.
- Edit the $database to include the name of your database.
- Visit yourdomain.tld/admin/pear.php and create an account. This will redirect back to my domain. However, just revisit yourdomain.tld/admin and use the account information you created.
- Delete the pear.php file located inside of the "admin" folder.
- Edit the site information to include all information to you.
- You're finished!
Store Template to PayPal Template
- Replace all files.
- Insert the 'uploadme.sql' file inside of the 'Store Template to PayPal Template' folder to your database.
- Redo config.php file.
- You're finished!
Updating
- Replace all files.
- Insert the 'uploadme.sql' file inside of the 'Update' folder to your database.
- Redo config.php file.
- You're finished!