1.Introduction

Larapay is a powerful payment module designed specifically for Laravel 11, crafted to streamline and enhance your payment processing experience. With seamless integration of popular payment gateways such as Stripe and Razorpay, Larapay empowers Laravel developers to effortlessly handle online transactions with confidence and ease.

Whether you're building an e-commerce platform, subscription service, or any other web application that requires secure and reliable payment processing, Larapay has you covered. Our module simplifies the complexities of payment integration, allowing you to focus on building exceptional user experiences while ensuring the highest standards of security and compliance.

Additionally, Larapay seamlessly integrates with the Spatie Laravel package, providing robust role and permission management capabilities. By incorporating Spatie Laravel, Larapay enables administrators to define and assign roles such as admin and user. This combination of Larapay and Spatie Laravel ensures flexibility, scalability, and enhanced security in your Laravel projects.

  • Effortless Integration

    Larapay seamlessly integrates with Laravel 11, providing a smooth and hassle-free payment setup process.

  • Support for Multiple Payment Gateways

    Choose from popular payment gateways such as Stripe and Razorpay to accept payments with ease.

  • Secure Transactions

    Rest assured that every transaction processed through Larapay is secured with industry-standard encryption and security measures.

  • Flexible Configuration

    Customize Larapay to suit your specific business requirements, with flexible configuration options for currencies, payment methods, and more.

  • Comprehensive Documentation

    Our comprehensive documentation and developer-friendly APIs make it easy to get started with Larapay and leverage its full potential.

  • Clean Code with Repository Design Pattern

    Larapay follows clean code principles and utilizes the repository design pattern for enhanced maintainability and scalability of your Laravel application.

Whether you're a seasoned Laravel developer or just getting started with web development, Larapay empowers you to build robust, scalable, and secure payment solutions that exceed your expectations. Say goodbye to payment processing headaches and hello to seamless transactions with Larapay!

Experience the power of Larapay today and take your Laravel applications to new heights in payment processing excellence.

2.Installation

2.1.Install Server (Required PHP version: 8.2)

Make sure to have the Xampp/WampServer/Lampp installed & running in your computer. If you already have installed server on your computer. You can download xampp from here => Download.

2.2.Install Composer (Recommended version: >= 2.2)

Make sure to have the composer installed & running in your computer. If you already have installed server on your computer, you can skip this step. You can download composer from here => Download.

2.3.Install Node (Recommended Node.js version: >18)

Make sure to have the Node.js installed & running in your computer. If you already have installed Node on your computer, you can skip this step if your existing node version is greater than 18.

2.4.This would install all the required packages in the vendor folder.
composer install
2.4.This would install all the required dependencies in the node_modules folder.
npm install
2.5.Please run the below command to generate the new key.
php artisan key:generate
2.6.Please fill your DB credentials in the .env file.
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=larapay DB_USERNAME=root DB_PASSWORD=
2.7.fill your email credentials in the .env file. if you don't know how to get your credentials then follow the link. => Click Here
MAIL_MAILER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_ENCRYPTION= MAIL_FROM_ADDRESS="support@larapay.com" MAIL_FROM_NAME="${APP_NAME}"
2.8.fill your Stripe & Razorpay credentials in the .env file. To get your Stripe credentials follow the link. => Click Here, and to get your Razorpay credentials follow the link. => Click Here
STRIPE_KEY= STRIPE_SECRET= RAZORPAY_KEY= RAZORPAY_SECRET=
2.9.Update your APP_URL in the .env file.
APP_URL=
2.10.Generates a /dist & libs directory with all the production files.
npm run build
2.11.Please run the following commands to clear all cache from the project.
php artisan optimize:clear
2.12.This will migrate the database tables. For more details visit Click Here.
php artisan migrate --seed
2.13.The development server is accessible at http://localhost:8000.
php artisan serve

3.Folder Structure

The Larapay folder structure is as follows:

├── app ├── Contracts ├── RazorpayGatewayInterface.php ├── StripeGatewayInterface.php ├── Http ├── Controllers ├── Auth ├── Controller.php ├── DashboardController.php ├── PaymentController.php ├── ProfileController.php ├── StripeController.php ├── Models ├── Providers ├── Repositories ├── DashboardPaymentRepository.php ├── RazorpayPaymentRepository.php ├── StripePaymentRepository.php ├── View ├── bootstrap ├── config ├── database ├── public ├── resources ├── css ├── images ├── js ├── views ├── auth ├── components ├── documentation ├── layouts ├── payments ├── profile └── dashboard.blade.php ├── routes ├── storage ├── tests ├── vendor ├── .editorconfig ├── .env ├── .env.example ├── artisan ├── composer.json ├── composer.lock ├── package-lock.json ├── package.json ├── phpunit.xml ├── postcss.config.js ├── README.md ├── tailwind.config.js └── vite.config.js

4.Sources & Credits

We extend our sincere gratitude to all the plugins utilized, which have significantly enhanced our application process, facilitating seamless creation of comprehensive guides and resources.

Name Link
Laravel https://laravel.com
TailwindCSS https://tailwindcss.com
Stripe https://stripe.com
Razorpay https://razorpay.com
Vite https://vitejs.dev
Spatie https://spatie.be/

5.Changelog

1.0.0 (29 April 2024)
  • - Initial Release

Thank you for purchasing Larapay - The Best Payment Module for Laravel 11.