| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #if __has_include(<Braintree/BraintreeThreeDSecure.h>)
- #import <Braintree/BTThreeDSecureRequest.h>
- #else
- #import <BraintreeThreeDSecure/BTThreeDSecureRequest.h>
- #endif
- @class BTConfiguration;
- NS_ASSUME_NONNULL_BEGIN
- @interface BTThreeDSecureRequest ()
- /**
- Set the BTPaymentFlowDriverDelegate for handling the driver events.
- */
- @property (nonatomic, weak) id<BTPaymentFlowDriverDelegate> paymentFlowDriverDelegate;
- /**
- The dfReferenceID for the session. Exposed for testing.
- */
- @property (nonatomic, strong) NSString *dfReferenceID;
- /**
- The account type as a raw string.
- */
- @property (nonatomic, readonly, nullable) NSString *accountTypeAsString;
- /**
- The shipping method as a two-digit code.
- Possible Values:
- 01 Same Day
- 02 Overnight / Expedited
- 03 Priority (2-3 Days)
- 04 Ground
- 05 Electronic Delivery
- 06 Ship to Store
- */
- @property (nonatomic, readonly, nullable) NSString *shippingMethodAsString;
- /**
- The requested 3DS version as a raw string.
- */
- @property (nonatomic, readonly) NSString *versionRequestedAsString;
- /**
- The requested exemption type as a raw string.
- */
- @property (nonatomic, readonly, nullable) NSString *requestedExemptionTypeAsString;
- /**
- Prepare for a 3DS 2.0 flow.
- @param apiClient The API client.
- @param completionBlock This completion will be invoked exactly once. If the error is nil then the preparation was successful.
- */
- - (void)prepareLookup:(BTAPIClient *)apiClient completion:(void (^)(NSError * _Nullable))completionBlock;
- /**
- Process the 3DS lookup result by presenting a challenge or returning the payment information.
- @param lookupResult The BTThreeDSecureResult from a lookup call.
- @param configuration A BTConfiguration used to process the lookup.
- */
- - (void)processLookupResult:(BTThreeDSecureResult *)lookupResult configuration:(BTConfiguration *)configuration;
- @end
- NS_ASSUME_NONNULL_END
|