-
Notifications
You must be signed in to change notification settings - Fork 108
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
Uncaught Exception when notify url accessed directly. #66
Labels
enhancement
New feature or request
Comments
Hi @erikdemarco thank you for asking. Notification class/function helper, and Expect to accepted HTTP request POST only. Then pass through But your feedback is valid, will put this as our backlog and implement it in the next release. Thank you |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you do something like this in notify url script:
Then this notify url accessed directly or not contained the correct format it will cause error:
"Uncaught Exception: Midtrans API is returning API error. HTTP status code: 404 API response: .... in /midtrans-php/Midtrans/ApiRequestor.php on line 167"
Isn't the correct way of handling this is returning false or returning null to $notif? So developer can easily check wheter the notification returned the correct data.
The text was updated successfully, but these errors were encountered: