E-commerce custom coding for payment route
Autore: Derek K.I have created some custom code for a credit card payment route for the e-commerce shopping cart.
<html>
<body>
<form method="POST" action="https://payments.securetrading.net/process/payments/choice">
<input type="hidden" name="sitereference" value="test_arcstrading91686">
<input type="hidden" name="stprofile" value="default">
<input type="hidden" name="currencyiso3a" value="GBP">
<center>Enter order number</centre>
<br>
<input type="display" name="orderreference" value="">
<br>
<br>
<center>Enter order total minus the £ sign</center>
<input type="display" name="mainamount" value="">
<input type="hidden" name="version" value="2">
<br>
<br>
<input type="submit" value="Pay Now">
</form>
</body>
</html>
How do I write the code so that the value in this string is the total value incl vat of the shopping cart.
<input type="display" name="mainamount" value="">
How do I write the code so that the value in this string is the order number
<input type="display" name="orderreference" value="">
Hello. I sent a notification about your question to the company employees, expect an answer from them here in the comments.
Hello Derek
Please take a look at our official guide here where this is mentioned:
https://guide.websitex5.com/en/support/solutions/articles/44000684552-quali-sistemi-di-pagamento-si-possono-utilizzare-
In short, just add the data you need to your custom code as displayed and it should work. For example:
I hope I was helpful
Stefano
Autore
Thanks Stefano that does work. What if I want to pass the customer details from the shopping cart into the payment page so that they do not have to retype their details. Can this be done.
Hello Derek
As of now, you can retrieve a few information for you order such as [COMPANY] for the company name or [ADDRESS] for the address, but an official list of these isn't currently available
I've notified the developers of this so that our guides might be updated to include this information, which might come in handy in situations such as this
Thank you
Stefano