Responding to an IPN message
With each successful message that you receive, configure your endpoint to send Amazon a "200 OK" response immediately after receipt. If you send another response, Amazon SNS performs retries every hour for 14 days. If your server can't be reached when the IPN is sent or when you respond with a 4xx, there are no retries.
Note: Amazon processes your payment requests in an asynchronous manner. Usually each notification is delivered to each of your specified endpoints exactly once, but the distributed nature of Amazon SNS and transient network conditions causes an occasional duplicate message. Be sure to design your application so that if duplicate IPN messages arrived, your payment workflow doesn't break.
For more information about the format of the Instant Notification, see HTTP/HTTPS Notification JSON Format in the Amazon SNS Getting Started Guide, which is available from the Amazon AWS Documentation portal.
The contents of the NotificationData member that is returned in the Instant Notification are described by the following publicly available XSD: https://amazonpayments.s3.amazonaws.com/documents/payments_ipn.xsd.
All Instant Notifications received from Amazon are signed. For more information about how to verify the signature, see Verifying the Signatures of Amazon SNS Messages in the Amazon SNS Getting Started Guide.
Copyright © 2009-2018 Amazon.com, Inc. or its affiliates. Amazon and Amazon.com are registered trademarks of Amazon.com, Inc. or its affiliates. All other trademarks are the property of their respective owners.