Repository navigation
Feat/razorpay gateway: Added Razorpay Payment Gateway - #115
Conversation
|
It's weird to see it's failing I checked it all in my local machine and it worked. Seems to me that payments-razor-pay does not exist on lock file. |
|
@nischaldoescode Hi, first of all the PR looks great. You really nailed the design patterns of the project.
I would have done it myself, but, the repo is a PR coming from your account. |
I think I ran it... Anyways will do it in a second. |
|
@nischaldoescode any news ? if you are having a hard time with the lock file, just delete it and run |
Done, and sorry about the commit message and the delay.. i was in a hurry. all the tests now should be successful. happy building and happy merging, sir. and Happy Coding Indeed. ThankYou. Cheers, |
|
@nischaldoescode cool. Thank you, now:
Stay tuned in the next hour |
|
@nischaldoescode i am still working on releasing and publishing. NPM changed a few things, so i have some writing to do. i hope i will release your packages soon |
Yeah they changed after a CVE was discovered. npm is turning I mean I personally prefer yarn over it. I switched from windows too. Yeah and best of luck. Waiting for the updates. |
|
@nischaldoescode So, everything is published now Fell free to add more PRs as you see fit. I will put you on the fast lane 🥇 |
Closes: #110
Overview
This PR adds an official Razorpay payment gateway integration to Storecraft.
The implementation follows the existing gateway architecture used in PayPal and Stripe and enables developers in India and South Asia to accept payments using Razorpay.
Features
onCheckoutCreateonCheckoutCompletePackage Structure
packages/payments/payments-razor-payMirrors structure of existing gateways for consistency.
Includes:
Implementation Details
Gateway lifecycle methods implemented:
onCheckoutCreateonCheckoutCompletewebhookstatusinvokeActiononBuyLinkHtml(included for chat checkout support)Why this is needed
Razorpay is dominant in India and South Asia.
Many developers cannot use Stripe/PayPal due to regional restrictions.
This integration expands Storecraft’s accessibility and adoption in new markets.
Testing
npm test)app.test.jsequivalent)Configuration
{ "key_id": "string", "key_secret": "string", "default_currency_code": "string (optional)", "capture_mode": "manual | auto (optional)" }Webhook Support
Handles:
payment.authorizedpayment.capturedpayment.failedrefund.processedUnrecognized events are safely ignored.
Documentation
Status
Regards,
Nischal