Answer the question
In order to leave comments, you need to log in
Why is the data not received by the POST method from the bank?
Hello. The bank should receive a response about the successful payment by the user using the POST method to a specific url of our site. The problem is that the bank is unable to send data using the post method to our site, while I send data from my machine and everything is received and processed perfectly.
Could this be related to my hosting settings or is it something else? I sent a question to the provider, they think for a very long time (they are stupid, I can’t understand my elementary question). The bank administrator claims that he gets some error when sending: error: java.lang.NullPointerException.
I use: shared hosting, Linux, apache, PHP/Yii framework.
What can be wrong? Thank you.
Answer the question
In order to leave comments, you need to log in
There is an idiot in the bank.
error: java.lang.NullPointerException. - this is just the beginning of the error.
The text should follow. In which it is written what specific problem occurred when sending. This may be a DNS error, or a connection timeout, or even an error, as they say above, in the application itself.
I always thought that only helpless pohape users perceive software errors as "my aunt swears", or "oh, something broke!" and unable to comprehend their meaning. It turns out that they are the same in Java.
If the bank programmer is unable even to read the error message, then one must run from such a bank like the plague.
It's scary to think how the rest works there.
And you can’t see from the logs when a request comes from them, with what data, and what do you give in response?
Ask the bank to send a simple curl POST request from their side to your url, and record the received request in your logs.
what type
curl --data "test=ok" example.com/url.php
if the request comes, then most likely everything is ok with you, and the problem is in the bank's software
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question