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

Issue with exception handling #62

Open
knit-pay opened this issue Jun 15, 2021 · 0 comments
Open

Issue with exception handling #62

knit-pay opened this issue Jun 15, 2021 · 0 comments

Comments

@knit-pay
Copy link

I am trying to call the createPaymentRequest function with an amount less than 9 INR, instead of giving a proper error message, it's giving an arbitrary error message "Invalid request" Kindly fix it. getting the same issue with other errors like invalid phone, invalid email, etc.
On the below line of code, we are getting the correct error message in $response_obj variable but in the exception which we are getting in the try/catch block, it's a wrong error message.

$message = isset($response_obj['reason']) ? $response_obj['reason'] :$message;

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