hebergeni Posted February 14, 2017 Share Posted February 14, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
hebergeni Posted February 17, 2017 Author Share Posted February 17, 2017 Hi Any other information can i provide you ? Regards 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.