razorpay / razorpay/razorpay-node
[Feature]: Api for order cancellation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 243
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
🚀 Feature Proposal
I am using razorpay standard web integration. In this we have to create an order but I see that there is no api to cancel an order.
Suggested Solution
Please add an api to cancel an order, so that at the backend an order can be cancelled if no action is taken on the order after a particular duration.
Alternatives
While creating an order, an optional expiry date can be added on the order so that the order expires after some time and cannot be used for making payment
Additional Information
Why this is needed?
Once we create an razorpay order, it never expires we do not know whether user has made payment or not. Although we can check it through a payment id but the order never expires. Since I do not know when an order expires I will have to keep track of order ids in the database. What if user refreshes the page, closes the standard checkout, there must be a way to cancel current order so that order id cannot be used in future.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests. Start by reviewing the repository’s existing order API entry points and order/payment documentation; define the cancellation or expiry behavior, then verify that the completed change prevents a cancelled or expired order from being used for payment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100