Hi all experts,
I am hoping someone can help me out here. I have used the South African payment gateway 'Payfast' in the past with a website I created by simply directing the user to a payfast server URL with all the required transaction parameters in the query string, the server then sends the user to a payment screen, they enter their card details and once successful it sends the user to a return URL of my choosing on my website so I know the payment has gone through.
Now I am trying to figure out how to do this with my app which is not web based? I know I can use a webview, but my problem is really how do I know if the transaction was successful as I do not have a return URL to send the user to?
Therefore it seems I must use a API instead and then possibly read some return JSON from the server to get the transaction status?
Looking at Payfast documentation I cannot make heads or tails of how to do this and I am not even sure that they have this facility.
Does anyone know a way of doing this for South African transactions? Ie. using Payfast or any other provider?
If so, would you please be kind enough to provide some sample code for this, I would really appreciate that tremendously!
I thank you in advance for your time,
Kind regards,
Jacques.
I am hoping someone can help me out here. I have used the South African payment gateway 'Payfast' in the past with a website I created by simply directing the user to a payfast server URL with all the required transaction parameters in the query string, the server then sends the user to a payment screen, they enter their card details and once successful it sends the user to a return URL of my choosing on my website so I know the payment has gone through.
Now I am trying to figure out how to do this with my app which is not web based? I know I can use a webview, but my problem is really how do I know if the transaction was successful as I do not have a return URL to send the user to?
Therefore it seems I must use a API instead and then possibly read some return JSON from the server to get the transaction status?
Looking at Payfast documentation I cannot make heads or tails of how to do this and I am not even sure that they have this facility.
Does anyone know a way of doing this for South African transactions? Ie. using Payfast or any other provider?
If so, would you please be kind enough to provide some sample code for this, I would really appreciate that tremendously!
I thank you in advance for your time,
Kind regards,
Jacques.