Install InfyInvoices

If you have purchased the InfyInvoices system then you will be able to find the zip named dist.zip.

If you want to setup InfyInvoices into your local environment then you can take help from here.

Now if you want to setup InfyInvoices on your server then you can directly copy the dist.zip folder to your web root directory on a server and the following steps:

1. Copy files to web server

Upload dist.zip to your web server's root (public_html) and extract it there.

2. Setup Default DB

  1. Open PHPMyAdmin on your server and do a login.

Database Login

  1. Click on the Databases tab.

Database

  1. Create a new database and specify a Database name of your choice and Click Create button.

Create Database

  1. Now on the left, select the database (infy_invoices) OR the one that you have created.

  2. Click Import in the top menu

Import

  1. Under Import, choose the default sql file from dist/database/infy_invoices.sql and click button Go.

Import File

3. Setup environment .env file

  1. Open .env file from your server's root folder.

Setup

  1. Update your .env file

You need to change the following information into your environment (.env) file.

- APP_NAME - Name of your Application - APP_URL - Change this URL with your server URL (including trailing path if you are putting it in sub folder or root website) - DB_HOST - Put your database hostname here - DB_PORT - Put your database port here if it does not default to 3306 - DB_DATABASE - Change it to your database name - DB_USERNAME - Name of your database user - DB_PASSWORD - Password of your database user

You will also need to set up mail configuration and update the following variables. You can use the below video for the reference on how to setup email configuration for cPanel servers.

- MAIL_MAILER - MAIL_HOST - MAIL_PORT - MAIL_USERNAME - MAIL_PASSWORD - MAIL_ENCRYPTION - ADMIN_EMAIL - MAIL_FROM_ADDRESS=${ADMIN_EMAIL} - MAIL_FROM_NAME="${APP_NAME}"

If you want to store your files to direct your s3 bucket then you have to use following .env variables. You need to change FILESYSTEM_DRIVER and MEDIA_DISK value to s3 when you are using AWS file storage.

- AWS_ACCESS_KEY_ID= - AWS_SECRET_ACCESS_KEY= - AWS_DEFAULT_REGION=us-east-1 - AWS_BUCKET= - AWS_ENDPOINT= - AWS_URL=

Or you can use your choice of storage driver to store your media assets if you want. All of your attachments will be placed into that.

Set Stripe configuration it is using while Invoice Bill payments. Here are some links by using it you will get an idea about how to generate stripe API keys.

  • Link 1

  • Link 2

    • STRIPE_KEY=
    • STRIPE_SECRET_KEY=
    • STRIPE_WEBHOOK_SECRET_KEY=

Set up the Razorpay Credentials into env:

You have to create account from Here and then you can find steps here to generate keys Here

- RAZORPAY_KEY= - RAZORPAY_SECRET=

Then we have added another payment gateway called PayPal. Therefore, update the .env file with below keys and find the step to Setup PayPal credentials

Setup PayPal Credentials

You just need PayPal Client ID, PayPal Secret.

You have to create account from Here and then you can find steps here to generate keys from Here or Here

Once you get the PayPal Client ID and PayPal Secret add the below keys to your env file.

PAYPAL_CLIENT_ID= PAYPAL_SECRET=

Setup Paystack Credentials

You have to create account from Here and then you can find steps here to generate sectet keys Here

Please use your email into Merchant Email

- PAYSTACK_PUBLIC_KEY= - PAYSTACK_SECRET_KEY= - PAYSTACK_PAYMENT_URL="https://api.paystack.co" - PAYSTACK_MERCHANT_EMAIL=

DO NOT FORGET TO FOLLOW GIVEN STEP : Also please set the redirect/callback URL to APP_URL/paystack-payment-success from your paystack account.

Cron jobs Setup

Enable recurring invoices in cPanel. Here is the link by using it you will get an idea about how to set the cron for the recurring invoices.

Link 1

4. Admin login

You can do admin login by accessing given URL.

YOUR_APP_URL/login

email: admin@infy-invoices.com

password: 123456