Skip to content

Issue with exception handling #62

@knit-pay

Description

@knit-pay

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions