diff --git a/AmazonPay/IpnHandler.php b/AmazonPay/IpnHandler.php index 3b4df8a..801bc87 100644 --- a/AmazonPay/IpnHandler.php +++ b/AmazonPay/IpnHandler.php @@ -457,7 +457,10 @@ private function getRemainingIpnFields() 'NotificationType' =>$ipnMessage['NotificationType'], 'SellerId' =>$ipnMessage['SellerId'], 'ReleaseEnvironment' =>$ipnMessage['ReleaseEnvironment'] ); - + // Add the EventType field when it's available. e.g- BillingAgreementNotification + if (isset($ipnMessage['EventType'])) { + $remainingFields['EventType'] = $ipnMessage['EventType']; + } return $remainingFields; }