我似乎无法让这个功能工作..这个想法是通过在联系表格中输入的几个变量并进入在线支付页面。问题是通过组合价格、OrderID、.ndcorporate(商家 ID 和 verifykey)来获得 MD5 值。该值将分配给 vcode。有什么线索吗?
function my_redirect() {
var verifykey = "1b469d0628a34gt3989676084bad9626";
var price = document.getElementById('get-amount').value;
var orderID = document.getElementById('get-orderid').value;
var vvcode = md5('+price+'.ndcorporate.'+orderID+'.'+verifykey+');
var url = 'https://www.onlinepayment.com.my/MOLPay/pay/ndcorporate/? amount='+price+'&orderid='+orderID+'&vcode='+vvcode+'';
window.location = url;
}