Skip to main content
knowledgecenter.avangate.com

Read receipt response for Avangate

To validate the success of the notification process insert an inline response in the script output of your IPN listener. Avangate expects the following format:

<EPAYMENT>DATE|HASH</EPAYMENT>

Once Avangate validates the response it considers the IPN successful. Otherwise, Avangate continues to send notifications per the failure recovery process until you provide a valid response.

 

DATE

Datetime stamp. YmdHis. (20081117145935)

HASH

Calculate the HMAC_MD5 signature using:

  • IPN_PID[0]
  • IPN_PNAME[0]
  • IPN_DATE
  • DATE
  • Your account’s secret key

HASH fields values are case insensitive.

 

The fields used in the HMAC_MD5 signature are captured from the IPN just received:

IPN_PID[0]

First product ID from the IPN_PID[] array.

IPN_PNAME[0]

First product name from the IPN_PNAME[] array.

IPN_DATE

IPN date in the YmdHis format (ex: 20081117145935)

DATE

Response issuing date (server time) in the YmdHis format (ex: 20081117145935)

For the example parameters included in this article, build the response using shorter data formats for date values. Use only the following for the HMAC source string:

Field name

Length

Field value

IPN_PID[0]

1

1

IPN_PNAME[0]

16

Software program

IPN_DATE

14

20050303123434

DATE

14

20050303123434

 

Therefore, the HMAC source string is be:

1116Software program14200503031234341420050303123434

while the HMAC MD5 string is: 
7bf97ed39681027d0c45aa45e3ea98f0

Configure the response to output anywhere in the page defined as the IPN URL:

<EPAYMENT>20050303123434|7bf97ed39681027d0c45aa45e3ea98f0</EPAYMENT>

Avangate checks the string’s validity and marks notifications as "successfully sent" in the Avangate system. Otherwise, Avangate resends the IPN notifications at specific time intervals described in the failure recovery process section, until successfully confirmed. Also, Avangate displays an error notification in the Dashboard area of your Control Panel.