Skip to content

Commit

Permalink
Merge pull request amzn#89 from biplobice/update-ipn-handler
Browse files Browse the repository at this point in the history
Add the EventType field to IpnHandler when it is available
  • Loading branch information
shangamesh authored Jun 3, 2022
2 parents 37882f2 + 613a64e commit 5b2b3ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AmazonPay/IpnHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5b2b3ff

Please sign in to comment.