Added Razorpay integration initial setup for payment gateway #4
+65
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Title:
Added Razorpay integration initial setup for payment gateway
Description:
This PR introduces the initial setup for integrating Razorpay as a payment gateway into the application. The payment flow is implemented with the Razorpay API, and basic functionalities such as order creation are included. The code is designed to be tested with a live Razorpay key once the necessary credentials are obtained.
Related Issues:
Fixes #3
Changes Made:
PaymentController
: Implemented the API endpoint for creating orders and initiating payments.PaymentService
: Added service logic for interacting with Razorpay's API to create orders.pom.xml
: Added dependencies for Razorpay integration.application.properties
: Added test key and secret for Razorpay.Screenshots (If applicable):
Implementation Video (If applicable):
NA
Additional note:
To implement the payment flow, I referred to various documentation, blogs, and yt tutorials. I tested the flow with a fake secret key to ensure the code works properly. However, I haven't tested it with a real key yet, coz of the blockers. So, I'm not 100% certain about the accuracy of the code.