How to Integrate Razor Payment Gateway in Laravel 10 | #razor #payment #laravel #php

preview_player
Показать описание
======================
How you can integrate Razorpay payment gateway in Laravel:
Install Laravel:
If you haven't already, create a new Laravel project using Composer:

composer create-project --prefer-dist laravel/laravel your-project-name
Install Razorpay PHP SDK:
Install the Razorpay PHP SDK using Composer:
===========================

composer require razorpay/razorpay:^3.0
Configure Razorpay API keys:
Get your Razorpay API key and API secret from the Razorpay dashboard. Add these keys to your Laravel .env file:
makefile
=============================

RAZORPAY_KEY_ID=your_key_id
RAZORPAY_KEY_SECRET=your_key_secret
Create RazorpayController:
Create a controller to handle the payment process. Run the following command to generate a controller:
==========================
Create Routes: