Hi
I need your help to creat a costum gateway module so i provide you information détails
<script id="amanpay-js"
src=“https://app-demo.amanpay.net:8443/widget.js”
data-lang=“fr”
data-mode="button"
data-merchant_id=""
data-access_key=""
data-order_id=""
data-order_desc=""
data-products_ids=""
data-amount=""
data-currency="MAD"
data-hmac=""
data-redirect_url="">
</script>
$hmac = hash_hmac("sha1", "$merchant_id:$order_id:$amount:$currency", $my_secret_key);
hmac = hmac.new(my_secret_key, merchant_id+':'+order_id+':'+amount+':'+currency, hashlib.sha1).hexdigest()
hmac = OpenSSL::HMAC.hexdigest('sha1', my_secret_key, '{merchant_id}:{order_id}:{amount}:{currency}')
String hmac = hmacDigest(merchant_id+':'+order_id+':'+amount+':'+currency, my_secret_key, "HmacSHA1");
var hmac = new HMACToken().CreateToken(merchant_id+':'+order_id+':'+amount+':'+currency, my_secret_key)
Thank you in advance
Regards