Response

Session identifier, the output of the Login method. Include sessionID into all your requests. Avangate throws an exception if the values are incorrect. The sessionID expires in 10 minutes.

Request

To create the HMAC_MD5 source string use your merchant code (available here) and the date of the request, prefixing them with the length in bytes of each respective value, along with your account’s secret key (for UTF-8 characters the length in bytes might be longer that the string length). For example:

Parameters

Type/Description

MerchantCode

Avangate

8AVANGATE

Date

2010-05-13 12:12:12

192010-05-13 12:12:12

HMAC source string

8AVANGATE192010-05-13 12:12:12

Secret key

SECRET_KEY

Calculated HMAC_MD5 signature based on MerchantCode and Date, using your secret key: