CardinalStepUpDelegate.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // CardinalReceiver.h
  3. // CardinalMobile
  4. //
  5. // Copyright © 2018 CardinalCommerce. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class CardinalStepUpData;
  9. @class CardinalResponse;
  10. @class CardinalSession;
  11. /*!
  12. * @protocol CardinalValidationDelegate Validation Delegate
  13. * @brief Delegate for various responses from the Cardinal Step Up flow after cardinalSession continue method being called.
  14. */
  15. @protocol CardinalValidationDelegate
  16. /*!
  17. * This method is triggered when the transaction has been terminated.This is how SDK hands back
  18. * control to the merchant's application. This method will
  19. * include data on how the transaction attempt ended and
  20. * you should have your logic for reviewing the results of
  21. * the transaction and making decisions regarding next steps.
  22. * JWT will be empty if validate was not successful
  23. *
  24. * @param session CardinalSession that is validated for.
  25. * @param validateResponse Response to the StepUpData Validation.
  26. * @param serverJWT JWT of the trasaction. Nil if validation is unsuccessful.
  27. */
  28. - (void)cardinalSession:(CardinalSession *)session
  29. stepUpDidValidateWithResponse:(CardinalResponse *)validateResponse
  30. serverJWT:(NSString *)serverJWT NS_SWIFT_NAME(cardinalSession(cardinalSession:stepUpValidated:serverJWT:));
  31. @end