"payfast"
Are you aware about the fact that - need to properly write the CURL post when working with PayFast with Laravel. Else, it may give HTTP/1.1 500 Internal Server Error;
Already worked with integration payfast payment gateway in Laravel 5.1 website, it is working perfect on our development server but when we move site on live server it give error in ITN request step, here is the error which I am getting:
HTTP/1.1 500 Internal Server Error.
Later I noticed that the issue is happened due to the two line of code of CURL post:
CURLOPT_SSL_VERIFYHOST => true,
CURLOPT_SSL_VERIFYPEER => false,
So I just change its value and it start working:
CURLOPT_SSL_VERIFYHOST => 2,
CURLOPT_SSL_VERIFYPEER => true;
This time need to be careful about those issues.
From my previous experience, All that is required for a once-off payment, or to setup a recurring payment (subscription or ad hoc), is an html form with the necessary variables (described in the checkout page) sent to PayFast. PayFast will then process the transaction, update the merchants account, and send a payment confirmation (ITN) to the notify URL. The return variables of the payment confirmation can then be used to update the system accordingly.
Api is available. API communications with PayFast take the form of standard HTTP requests. These requests are made against a set of endpoints, depending on the action required. Variables may be sent via both the headers and body of each request as specified.
Please ping me.