It is the first time I integrate Addon Payments and the truth is that I can not make it work, I explain more less what I have done in case you can help me. At the moment I am with the tests offered by the documentation have if I can pass data.
This is the form that gives you your documentation
<form method="POST" action="https://hpp.sandbox.addonpayments.com/pay">
<input type="hidden" name="TIMESTAMP" value="20181022094346">
<input type="hidden" name="MERCHANT_ID" value="ID de comercio">
<input type="hidden" name="ACCOUNT" value="internet">
<input type="hidden" name="ORDER_ID" value="N6qsk4kYRZihmPrTXWYS6g">
<input type="hidden" name="AMOUNT" value="1001">
<input type="hidden" name="CURRENCY" value="EUR">
<input type="hidden" name="SHA1HASH" value="308bb8dfbbfcc67c28d602d988ab104c3b08d012">
<input type="hidden" name="AUTO_SETTLE_FLAG" value="1">
<input type="hidden" name="COMMENT1" value="Canal móvil">
<input type="hidden" name="COMMENT2" value="Pago inicial">
<input type="hidden" name="SHIPPING_CODE" value="E77|4QJ">
<input type="hidden" name="SHIPPING_CO" value="GB">
<input type="hidden" name="BILLING_CODE" value="R90|ZQ7">
<input type="hidden" name="BILLING_CO" value="GB">
<input type="hidden" name="CUST_NUM" value="332a85b">
<input type="hidden" name="VAR_REF" value="Invoice 7564a">
<input type="hidden" name="PROD_ID" value="SKU1000054">
<input type="hidden" name="HPP_LANG" value="GB">
<input type="hidden" name="HPP_VERSION" value="2">
<input type="hidden" name="MERCHANT_RESPONSE_URL" value="https://www.example.com/responseUrl">
<input type="hidden" name="CARD_PAYMENT_BUTTON" value="Pagar ahora">
<input type="hidden" name="SUPPLEMENTARY_DATA" value="Valor personalizado">
<input type="submit" value="Haz clic aquí para comprar">
</form>
But this part that I put below I do not understand
Step 1: With the SHA-1 algorithm, obtain the hash value of a string composed of the requested values.
The hash reference of an HPP request is:
"timestamp.merchantid.orderid.amount.currency"
Starting from the previous POST example, our initial string will be:
"20181022094346.ID de comercio.N6qsk4kYRZihmPrTXWYS6g.1001.EUR"
Step 2: Concatenate the hash value chain with the shared secret.
After performing step 1, you will have a string like the following: 28b85cd34d0e0d6b243d58f0e9f7f4bf7da1b882
You have to concatenate it with the shared secret, for example:
"28b85cd34d0e0d6b243d58f0e9f7f4bf7da1b882.Secreto compartido"
Step 3: With the SHA-1 algorithm, get the hash value of the concatenated string.
The final string that we add to the request must be a hash value, obtained with the SHA-1 algorithm, of the concatenated chain. For example: 947903969e7aaf996164c680a6669805fe405269
Haber if someone can throw some light on me because I get an error in the HASH. Here the data is not updated, I add the merchant code and the merchant id.