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

400 error when sending refundPayment request #3209

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

400 error when sending refundPayment request #3209

xotnet opened this issue Jan 4, 2025 · 0 comments

Comments

@xotnet
Copy link

xotnet commented Jan 4, 2025

I discovered an issue with BotAPI. When sending a refundPayment request for a payment made as part of a recurring subscription, the API responds with a 400 error and the message:
{"ok":false,"error_code":400,"description":"Bad Request: CHARGE_ALREADY_REFUNDED"}
However, the refund itself is processed successfully. The problem lies in the incorrect server response: the bot does not display any notification about the refund, and the stars are simply returned to the user's account without any message or confirmation.

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