ChallengeStatusReceiver.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Transaction.h
  3. // CardinalEMVCoSDK
  4. //
  5. // Copyright © 2018 Cardinal Commerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "CompletionEvent.h"
  9. #import "RuntimeErrorEvent.h"
  10. #import "ProtocolErrorEvent.h"
  11. /**
  12. * A callback object that confrotnts to ChallengeStatusReceiver protocol
  13. * receives challenge status notification from the 3DS SDK at the end of the challenge process.
  14. * This receiver object may be notified by calling various methods.
  15. */
  16. @protocol ChallengeStatusReceiver
  17. /**
  18. * Called when the challenge process (that is, the transaction) is completed.
  19. * When a transaction is completed, a transaction status shall be available.
  20. * @param completionEvent Information about completion of the challenge process.
  21. */
  22. - (void) completed: (CompletionEvent *) completionEvent;
  23. /**
  24. * Called when the Cardholder selects the option to cancel the transaction on the challenge screen.
  25. */
  26. - (void) cancelled;
  27. /**
  28. * Called when the challenge process reaches or exceeds the timeout interval that is specified during the doChallenge call on the 3DS SDK.
  29. */
  30. - (void) timedout;
  31. /**
  32. * Called when the 3DS SDK receives an EMV 3-D Secure protocol-defined error message from the ACS.
  33. * @param protocolErrorEvent Error code and details.
  34. */
  35. - (void) protocolError: (ProtocolErrorEvent *) protocolErrorEvent;
  36. /**
  37. * Called when the 3DS SDK encounters errors during the challenge process
  38. * These errors include all errors except those covered by the protocolError method.
  39. * @param runtimeErrorEvent Error code and details.
  40. */
  41. - (void) runtimeError: (RuntimeErrorEvent *) runtimeErrorEvent;
  42. @end