Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Api for order cancellation #426

Open
AshwinNema opened this issue Jan 4, 2025 · 0 comments
Open

[Feature]: Api for order cancellation #426

AshwinNema opened this issue Jan 4, 2025 · 0 comments

Comments

@AshwinNema
Copy link

🚀 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant