Betplay

Installation document v1.3


v1.5 and higher don't need server installation expect updating payment information, Just open your server's main location and follow step shown on screen

Introduction

  • Item Name : Betplay
  • Item Version : v 1.3
  • Author : Codegente

First of all, Thank you so much for purchasing this script. You are awesome!
You are entitled to get free lifetime updates to this product + exceptional support from the author directly.

This documentation is to help you regarding each step of customization. Please go through the documentation carefully to understand installation and customization process

Requirements

  1. Android Studio
  2. PHP v7 or higher
  3. MySQL

Be careful while editing the script. If not edited properly, the functionality may break completely.
No support is provided for faulty customization.

In order to start configuring android studio, you need to install android studio and Java SE Development Kit. First be sure you download android studio from this link https://developer.android.com/studio. You will find system requirements & download options for Windows, Mac and Linux system in the same page at the bottom.

Click on DOWNLOAD ANDROID STUDIO button to download, you will see an exe file just like below image. Click on exe file.

Follow below steps to successfully install android studio.

Android Installation Steps


Step 1:– Clicking on android studio exe file it will prompt you one dialog to run launcher file to get started with installation. You just simply click on run button.


Step 2:– The next screen will be welcome screen, please read it and click on next button to continue.


Step 3:– After clicking on next button, the next screen will ask you to choose component to install like below image, by default android studio will be selected and we recommend you to select Android Virtual Device option as well. Android Virtual Device will help you test android applications in virtual devices and click on next.


Step 4:– The next screen will ask you for configuration settings like installation location for android studio, we recommend you not to change installation location and if you want so, you can click on browse button otherwise click on next button.


Step 5:– The next screen will ask you to create shortcut for android studio, do not change anything just click on Install button. It will start installing, you will see progress in the dialog.


Step 6:– After installation is complete, the dialog for installation complete will be shown. Click on next button.


Step 7:– The next screen will show below dialog.


Step 8:– Click on finish button. The installation is done. Now that you have successfully installed android studio, you are required to install Java JDK. Follow further steps to download and install Java JDK and finish setup with android studio.
Alternatively you can check steps to install android studio from Install Android studio link to install android studio for Windows, Linux, or Mac system and follow steps from it.

Java JDK Configuration

To download java JDK, open this Java JDK, you will find following page.

Click on JDK Download and it will redirect you to download page where you will find JDK downloads for Windows, Linux and Mac system. Download according to the system you have available. Please refer to below image.

Once you will click on download link for java JDK, it will prompt you one dialog to check license agreement for oracle java SE.

Click on download button and after that it will ask you to register an account with Oracle or if you already have one then you can continue with sign in option. Once you complete this process successfully, it will start downloading JDK to your system.

Click on downloaded JDK exe file and install on your system. Once you complete JDK installation steps follow below steps to set JDK path in your system.

JDK Installation Steps

Step 1:– Right click on computer, click on properties.


Step 2:– Click on advanced system settings then click on Environment Variables button.


Step 3:– You have to add new user variable that will be pointing out to JDK location. In user variables, click on New button, it will ask you to add Variable name and Variable value. Add “JAVA_HOME” to variable name and variable value will be path to the jdk_version directory. Once you set it you might need to restart your pc to make it work.


– Click on android studio launcher exe to launch it. You will see below image on your system that will initial screen for android studio.

Now that you have done setup for android studio, follow below steps to open Betplay project and run it on your real device.

Android Project Setup

Follow steps to open Betplay Project and run it on your real device.

Current package name for project is com.betplay.android. Check below steps to change package name according to your requirements.


Step 1:– Select package name click on settings icon as you can see in below image, it is surrounded by square outline, on clicking on it you will see an option “Compact Middle Packages” checked. Just click on it and it will be unchecked. Now the difference you will see in below two images.


Step 2:– Click on each portion of package name and you can change it one by one like below image. Right click on one part of the package name, choose Refactor then choose Rename…


Step 3:– Enter the name you want to assign to this portion of full package name, the Refactor button will now be enabled, just click on it


Step 4:– The editor will look for total usages of the old name and will ask you to confirm changing package name, click on “Do Refactor” button and it will successfully change the old portion with new one. Do like this with other portion from package name as per your requirements.


Step 5:– Make sure to check package name in manifest and build gradle file, it should be updated with new name and if it is not then u can manually change it here, in gradle file after you change the package name, it will ask you to sync the project, just click on “Sync Now” button and everything is good to go. Check below images for reference.

Change Application Name

To change application name from Betplay to anything else, go to values folder and open strings.xml file and change value in app_name string reference.

Change Application Launcher Icon

To change application launcher icon, go to res folder, place all sizes in mipmap folder. Name must be ic_launcher.png.

  • mipmap-hdpi – 72*72
  • mipmap-mdpi – 48*48
  • mipmap-xhdpi – 96*96
  • mipmap-xxhdpi – 144*144
  • mipmap-xxxhdpi – 192*192
To Change logo replace files logo_wide.png and logo_wide_1.png, logo_wide is visible on top of homescreen and logo_wide_1.png is visible on splash, login and other screens

Change Server Api links

To make your app work successfully, you need to put your server url in Variables file, for that go to ‘classes’ package folder and there you can find Variables file. In server files you can find database connection configration in "appadmin/connection/config.php" file

v1.5 and higher don't need to follow these step they can simply open root folder and proceed with installation form

Follow this tutorial for server installation guide - https://youtu.be/ZoFq8-ivGjI

Paytm - 

go to paytm folder in your server open lib folder right click on config_paytm.php and select edit change PAYTM_ENVIRONMENT to 'PROD'

and replace following values with values you find in paytm dashboard

PAYTM_MERCHANT_KEY

PAYTM_MERCHANT_MID

PAYTM_MERCHANT_WEBSITE

after updating click on save and close the file then go back to paytm folder and find pgRedirect.php file right click and click edit and find this -

$paramList["CALLBACK_URL"] = "http://codegente.in/projects/bet/paytm/pgResponse.php";

replace this call back url to your server url for example 

$paramList["CALLBACK_URL"] = "http://yourdomain.com/paytm/pgResponse.php";

after editing click on save, you can enable or disable payment gateway from your admin dashboard


Razorpay 

go to razorpay folder in your server find config.php right click and click on edit change $keyId and $keySecret 

$keyId is your merchantkey and $keySecret is secret key you receive on generating API keys in razorpay dashboard


Open PhpMyAdmin->select database->select gametime_new table->click on structure from listed tabs at top and click on go

Fill the form same shown in below image

For any assistance you can contact us on [email protected]

All right resevered by Codegente || Copyright 2018-2021 Codegente