php - Calling Prestashop postProcess method

I'm actually developing a payment method module for Prestashop 1.7 but now I'm stuck with the postProcess() method on my payment page, the method is being called immediately when the payment page loads. Do you know why this is happening? My payment.tpl its a simple html form to perform a POST request.
Thanks in advance.
Answer
Solution:
Solved. Its needed a validation because the postProcess runs after init() and before initContent():
public function postProcess()
{
if (!empty($_POST))
{
// Magic here!
}
}
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: err_ossl_pem_no_start_line
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.