Can I send my custom variables to sandbox and get a response?
Yes, you can send custom
variables that will be returned on the notify_url, after a successful
transaction from the sandbox. However, if you are testing locally, you will not
receive the ITN as it will be unable to reach your local server.
Related Articles
How do I create a Custom Integration request?
Developer Docs Our custom integration developer documentation can be found here: https://developers.payfast.co.za/docs#quickstart To make things easy for you, you can make use of the example request below. Simply replace the values of the fields with ...
What is the difference between the sandbox and the live Payfast system?
The sandbox uses a virtual wallet in place of all the payment methods and will not send any email confirmation. Apart from that, you will be able to test your custom integration, including recurring billing payments, ITNs, order updates on your site, ...
When using a button, how do I get my custom field included in the payment confirmation email from Payfast? ‘custom_str1’ is not working?
You will need to add it on to the item name, or the item description, in order to get the information in the confirmation email. Please note the character limit for each of these as per our documentation.
Where can I view my token for testing a subscription in the sandbox?
You will not be able to view it in the sandbox. You must make use of the ITN callback in order to retrieve the token among the return variables after a successful payment.
What causes the error "The supplied variables are not according to specification"?
This error is thrown if any of the POSTed values are incorrect, for instance, if the merchant_id or merchant_key is incorrect (possibly due to using a sandbox credentials on the live site), the following error will be thrown ‘The supplied variables ...