BTPaymentFlowDriver_Internal.h 942 B

12345678910111213141516171819202122232425
  1. #if __has_include(<Braintree/BraintreePaymentFlow.h>)
  2. #import <Braintree/BTPaymentFlowDriver.h>
  3. #else
  4. #import <BraintreePaymentFlow/BTPaymentFlowDriver.h>
  5. #endif
  6. @class BTPaymentFlowRequest;
  7. @class BTPaymentFlowResult;
  8. @interface BTPaymentFlowDriver ()
  9. /**
  10. Set up the BTPaymentFlowDriver with a request object and a completion block without starting the flow.
  11. @param request A BTPaymentFlowRequest to set on the BTPaymentFlow
  12. @param completionBlock This completion will be invoked exactly once when the payment flow is complete or an error occurs.
  13. */
  14. - (void)setupPaymentFlow:(BTPaymentFlowRequest<BTPaymentFlowRequestDelegate> *_Nonnull)request completion:(void (^_Nullable)(BTPaymentFlowResult * _Nullable, NSError * _Nullable))completionBlock;
  15. /**
  16. Exposed for testing - instantiates the SFSafariViewController to be presented
  17. */
  18. - (void)informDelegatePresentingViewControllerRequestPresent:(NSURL * _Nullable)appSwitchURL;
  19. @end