BTThreeDSecureRequest_Internal.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #if __has_include(<Braintree/BraintreeThreeDSecure.h>)
  2. #import <Braintree/BTThreeDSecureRequest.h>
  3. #else
  4. #import <BraintreeThreeDSecure/BTThreeDSecureRequest.h>
  5. #endif
  6. @class BTConfiguration;
  7. NS_ASSUME_NONNULL_BEGIN
  8. @interface BTThreeDSecureRequest ()
  9. /**
  10. Set the BTPaymentFlowDriverDelegate for handling the driver events.
  11. */
  12. @property (nonatomic, weak) id<BTPaymentFlowDriverDelegate> paymentFlowDriverDelegate;
  13. /**
  14. The dfReferenceID for the session. Exposed for testing.
  15. */
  16. @property (nonatomic, strong) NSString *dfReferenceID;
  17. /**
  18. The account type as a raw string.
  19. */
  20. @property (nonatomic, readonly, nullable) NSString *accountTypeAsString;
  21. /**
  22. The shipping method as a two-digit code.
  23. Possible Values:
  24. 01 Same Day
  25. 02 Overnight / Expedited
  26. 03 Priority (2-3 Days)
  27. 04 Ground
  28. 05 Electronic Delivery
  29. 06 Ship to Store
  30. */
  31. @property (nonatomic, readonly, nullable) NSString *shippingMethodAsString;
  32. /**
  33. The requested 3DS version as a raw string.
  34. */
  35. @property (nonatomic, readonly) NSString *versionRequestedAsString;
  36. /**
  37. The requested exemption type as a raw string.
  38. */
  39. @property (nonatomic, readonly, nullable) NSString *requestedExemptionTypeAsString;
  40. /**
  41. Prepare for a 3DS 2.0 flow.
  42. @param apiClient The API client.
  43. @param completionBlock This completion will be invoked exactly once. If the error is nil then the preparation was successful.
  44. */
  45. - (void)prepareLookup:(BTAPIClient *)apiClient completion:(void (^)(NSError * _Nullable))completionBlock;
  46. /**
  47. Process the 3DS lookup result by presenting a challenge or returning the payment information.
  48. @param lookupResult The BTThreeDSecureResult from a lookup call.
  49. @param configuration A BTConfiguration used to process the lookup.
  50. */
  51. - (void)processLookupResult:(BTThreeDSecureResult *)lookupResult configuration:(BTConfiguration *)configuration;
  52. @end
  53. NS_ASSUME_NONNULL_END