WebSite X5Help Center

 
David L.
David L.
User

Using Payfast with Website X5  en

Autore: David L.
Visite 1250, Followers 1, Condiviso 0  

Hi All ..

Im Using Payfast and a Payment method .

I have managed to get it working to a point , With a Button ...

I would like to add in ( redirect \ refresh ) so the the custom code can process the payment with having the extra button .

Here is an Example of my code using the Sandbox:

.....................................................................................................................................................

<html>

<body>
<form action="https://www.sandbox.payfast.co.za/eng/process" method="POST">

<input type="hidden" name="merchant_id" value="10000100">
<input type="hidden" name="merchant_key" value="46f0cd694581a">

<input type="hidden" name="return_url" value="http://www.3d-what.co.za/return.html">
<input type="hidden" name="cancel_url" value="http://www.3d-what.co.za/cancel.html">
<input type="hidden" name="notify_url" value="http://www.3d-what.co.za/notify.html">
<input type="hidden" name="name_first" value="[NAME]"><br>
<input type="hidden" name="name_last" value="[LASTNAME]"><br>
<input type="hidden" name="email_address" value="***"><br>
<input type="hidden" name="cell_number" value="0824574186"><br>
<input type="hidden" name="item_name" value="3D-What"><br>
<input type="hidden" name="amount" value="100"><br>

<center><h1>ENTER SECURE PAYMENT AREA</h1><center>
<center><input type="image" src="http://www.3d-what.co.za/images/payfastpaynow.png" alt="Submit" width="400" height="96"><center>
</form>
</body>
</html>

..........................................................................................................................................

I have looked at using the line to refresh ....

        <meta http-equiv="refresh" content="0">

But i can not seem to get it working with the ( form action )....

Can some one shed some light on this matter and\or point me in the right direction.

Postato il
2 RISPOSTE
Incomedia
Stefano G.
Incomedia

Hi David.

Unfortunately, as this question greatly involves custom code, the Staff is unable to provide the needed support.

I will however leave this topic open so that other members of the community might eventually stop by and help you out with it

Thank you for your understanding

Stefano

Leggi di più
Postato il da Stefano G.
David L.
David L.
User
Autore

Hi Stefano

Thanks you for the feedback..
Working with code is not my strong point.....

The code above works just fine but would like it to Auto Direct without using the submit button...

I see there is one other user also working with Payfast and they have managed to do what I’m trying .

I will try making contact with them and see if I’m able to please my curios mind.

Regards

David

Leggi di più
Postato il da David L.