WebSite X5Help Center

 
HCR E.
HCR E.
User

Nmi.com or authorize.net integration into website  en

Autor: HCR E.
Visitado 1901, Followers 1, Compartido 0  

I have worked with the company that processes our credit card transactions, but they cannot help me with getting the price the customer will be charged from within the WebSite X5 Professional shopping cart. I have been unable to find out where the total for the transaction is passed from WebSite X5 to the custom code. So my question is how is the amount of the purchase relayed to my processing to be completed? They have been able to assist me with getting a form for the customers information, but don't understand where the price to be paid is being passed. Please HELP!!!!

Here is the custom code they have provided so far:

<form action="https://secure.nmi.com/cart/cart.php" method="POST">
<input type="hidden" name="key_id" value="13187670" />
<input type="hidden" name="action" value="process_variable" />
<input type="hidden" name="order_description" value="Test" />
<input type="hidden" name="language" value="en" />
<input type="hidden" name="customer_receipt" value="true" />
<input type="hidden" name="hash" value="action|order_description|075d2878ed272161eb90b72c04d3efd0" />
<input type="submit" name="submit" value="Pay Now" />
</form>

Publicado en
1 RESPUESTAS
Paul M.
Paul M.
Moderator

Hello HCR E.,

The code that NMI have given you doesn't allow for the necessary variable to be passed from WebSite X5.  Instead, that code as it stands will permit the customer to enter their own figure for the total of the transaction, and I am sure this is not what you wanted or asked for!

I kind of understand why NMI have offered you this code, and it's to do with the following line:

<input type="hidden" name="hash" value="action|order_description|075d2878ed272161eb90b72c04d3efd0" />

Like many other payment gateways, NMI strongly recommend that the form variables are hashed to increase security and make it virtually impossible for anyone to tamper with the data.  This is good, and I strongly support it.  However, it is not straightforward to implement this type of checkout in WebSite X5, without resorting to additional coding, perhaps PHP or ASP.

To the best of my knowledge I believe that NMI will allow transactions without the verification hash, in spite of what I've written above.  But you leave yourself wide open to fraud, and I don't think they would be very supportive in the event of a problem, given that they don't recommend it.

If you decide to proceed without hashing then you would pass the total amount from WebSite X5 to NMI by adding an extra line to your form as follows:

<input type="hidden" name="amount" value="[PRICE]" />

The form would need a little bit of tweaking in other respects too (e.g. 'process_variable' needs to be changed to 'process_fixed'...  there are other details too), but basically it would be fairly straightforward.

To do the job properly and securely though you will need a custom script, using your own NMI merchant credentials, etc.

As NMI is not a native payment gateway option in WebSite X5, Incomedia can't offer support for the custom coding required.  There are others on this forum who may be willing to help you though, including myself...  however, I have a couple of very similar tasks that I'm working on right now and unfortunately my free time is somewhat limited.  There would be a bit of a delay as I prioritise my work on a first come first served basis.

Kind regards,

Paul

https://webx5.pro

Leer más
Publicado en de Paul M.