Jump to content

Help from programmers needed - Gateway integration


thernes

Recommended Posts

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"]."&currency=".$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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated