WebSite X5Help Center

 
Derek K.
Derek K.
User

E-commerce custom coding for payment route  en

Автор: Derek K.
Просмотрено 1027, Подписчики 1, Размещенный 0  

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="">

Размещено
4 Ответы
Aleksej H.
Aleksej H.
Moderator

Hello. I sent a notification about your question to the company employees, expect an answer from them here in the comments.

Читать больше
Размещено От Aleksej H.
Derek K.
Derek K.
User
Автор

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.

Читать больше
Размещено От Derek K.
Incomedia
Stefano G.
Incomedia

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

Читать больше
Размещено От Stefano G.