POST Example

POST Request

Name Example Value
netgiro_appkey 881E674F-7891-4C20-AFD8-56FE2624C4B5
request_url https://api.test.netgiro.is/v1/checkout/InsertCart
netgiro_nonce 39084373214935208

For the body we will be sending the following object:

var requestBody = new
{
    Amount = 1000,
    Reference = "991100-123",
    CustomerId = "8223281",
    ConfirmationType = 1,
    CallbackUrl = "www.example.com/callback-success/991100-123",
    CallbackCancelUrl = "www.example.com/callback-cancel/991100-123"
};

Lets say our secret is:

YCFd6hiA8lUjZejVcIf/LhRXO4wTDxY0JhOXvQZwnMSiNynSxmNIMjMf1HHwdV6cMN48NX3ZipA9q9hLPb9C1ZIzMH5dvELPAHceiu7LbZzmIAGeOf/OUaDrk2Zq2dbGacIAzU6yyk4KmOXRaSLi8KW8t3krdQSX7Ecm8Qunc/A= (base 64 encoded)

Then calling the CalculateSignature method to obtain netgiro_signature should return:

  • CalculateSignature(secret, netgiro_nonce, request_url, JsonSerializer.Serialize(requestBody))

  • b3fe4c9a4d1727d69e408fad24700bdae624d21303efad6c011385c8312a79ee (base 64 encoded string)


© 2024 Netgíró Greiðslumiðlun. - Kt: 5101222830 | Katrínartún 2, 105 Reykjavík | Sími: 4 300 330 | netgiro@netgiro.is