https://github.com/anburocky3/laravel-razorpay-inertia
Razorpay payment gateway integration with Laravel, Inertia, React and Typescript
https://github.com/anburocky3/laravel-razorpay-inertia
laravel laravel-inertiajs payment-integration razorpay razorpay-payment-gateway react typescript-react
Last synced: about 1 month ago
JSON representation
Razorpay payment gateway integration with Laravel, Inertia, React and Typescript
- Host: GitHub
- URL: https://github.com/anburocky3/laravel-razorpay-inertia
- Owner: anburocky3
- Created: 2024-07-22T13:42:11.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T14:19:08.000Z (10 months ago)
- Last Synced: 2025-03-19T12:18:14.121Z (about 2 months ago)
- Topics: laravel, laravel-inertiajs, payment-integration, razorpay, razorpay-payment-gateway, react, typescript-react
- Language: PHP
- Homepage:
- Size: 136 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Razorpay Integration with Inertia, React and Typescript.
1. Install Razorpay SDK:
```sh
composer require razorpay/razorpay
```2. Create Model, Controller, Migration, Service, etc.
3. Update your `.env` with the following values.```dotenv
# Razorpay
RAZORPAY_KEY=
RAZORPAY_SECRET=
```
4. Open `config/services.php` and add the below at the end of the array.```php
'razorpay' => [
'key' => env('RAZORPAY_KEY', ''),
'secret' => env('RAZORPAY_SECRET', ''),
],
```5. Have your routes like this.
```php
// Payment
Route::post('/create-order', [PaymentController::class, 'createOrder']);
Route::post('/verify-payment', [PaymentController::class, 'verifyPayment']);
```### Author:
- [Anbuselvan Annamalai](https://fb.me/anburocky3)