.NET Hosted Payment

You can find below a high and a low level workflow diagram of the required integration.

Full documentation is available in API Specification. You should also use our Sandbox test accounts Sandbox testing to test against.

High Level Workflow

Low Level Workflow

Here is some sample code to help in this integration:

The code for generating a HASH is:

using System.Security.Cryptography;
using System.Text;
protected static String GetHash(String plainString)
{
    byte[] toBeHashed = System.Text.Encoding.UTF8.GetBytes(plainString);
    using SHA512 cryptHandler = new SHA512Managed();
    byte[] hash = cryptHandler.ComputeHash(toBeHashed);
    String hashed = "";
    foreach (byte i in hash)
    {
        if (i < 16)
            hashed += "0" + i.ToString("x");
        else
            hashed += i.ToString("x");
    }
    return hashed;
}

You should generate the “datetime” value using:

System.DateTime.Now.ToString("dd-MM-yyyy:HH:mm:ss:fff");
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International