Website Payments
Overview
Payment information is sent to PayFast by a secure HTTP post from the account holder.
PayFast will validate the received information, and process the payment from the user through the user's preferred payment method.
Upon successful completion of the payment, the user will be returned to the return_url specified by the account holder.
If the user cancels the payment at any point during PayFast's interaction with the user, the user will be redirected to the cancel_url specified by the account holder.
How it works
The account holder submits payment information to PayFast via a secure HTML FORM post with the necessary variables set. The details of the variables available (and those required) are detailed below.
No systematic response is given to a payment request from an account holder. All the variables submitted to PayFast are checked for validity and accuracy though, and should any submitted information be incorrect or invalid, error feedback will be provided in the form of a HTML response page listing any errors.
See the Integration Comparison page to compare the various integration methods.