IpnHandlerInterface.php 805 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace AmazonPay;
  3. /* Interface for IpnHandler.php */
  4. interface IpnHandlerInterface
  5. {
  6. /* returnMessage() - JSON decode the raw [Message] portion of the IPN */
  7. public function returnMessage();
  8. /* toJson() - Converts IPN [Message] field to JSON
  9. *
  10. * Has child elements
  11. * ['NotificationData'] [XML] - API call XML notification data
  12. * @param remainingFields - consists of remaining IPN array fields that are merged
  13. * Type - Notification
  14. * MessageId - ID of the Notification
  15. * Topic ARN - Topic of the IPN
  16. * @return response in JSON format
  17. */
  18. public function toJson();
  19. /* toArray() - Converts IPN [Message] field to associative array
  20. * @return response in array format
  21. */
  22. public function toArray();
  23. }