thernes Posted September 14, 2009 Share Posted September 14, 2009 Hey all Let me just first off all say that I am no programmer and that's the reason I am posting my question here. I am trying to integrate a payment gateway, but it seems that the checksum they need is not generated correctly. In the documentation for the gateway, this example is used; function generateCheckSum($params, $secret_key) { return md5(http_build_query(array("merchant_id" => $params["merchant_id"], "order_id" => $params["invoiceid"], "amount" => $params["amount"], "currency" => $params["currency"], "order_text" => $params["description"], "flow_layout" => $params["flow_layout"], "secret_key" => $secret_key), null, "&")); } Would it somehow be possible to not use this function and just create a value that looks something like this? $checksum = md5("merchant=".$params["merchant_id"]."&orderid=".$params["invoiceid"]."¤cy=".$params["currency"]."&amount=".$amount."")); If not, what would be the correct of the function above as a hidden checksum field that is posted to a server? Appreciate any help. 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.