BTViewControllerPresentingDelegate

Objective-C

@protocol BTViewControllerPresentingDelegate <NSObject>

Swift

protocol BTViewControllerPresentingDelegate : NSObjectProtocol

Protocol for receiving payment lifecycle messages from a payment driver that requires presentation of a view controller to authorize a payment.

  • The payment driver requires presentation of a view controller in order to proceed.

    Your implementation should present the viewController modally, e.g. via presentViewController:animated:completion:

    Declaration

    Objective-C

    - (void)paymentDriver:(nonnull id)driver
        requestsPresentationOfViewController:
            (nonnull UIViewController *)viewController;

    Swift

    func paymentDriver(_ driver: Any, requestsPresentationOf viewController: UIViewController)

    Parameters

    driver

    The payment driver

    viewController

    The view controller to present

  • The payment driver requires dismissal of a view controller.

    Your implementation should dismiss the viewController, e.g. via dismissViewControllerAnimated:completion:

    Declaration

    Objective-C

    - (void)paymentDriver:(nonnull id)driver
        requestsDismissalOfViewController:
            (nonnull UIViewController *)viewController;

    Swift

    func paymentDriver(_ driver: Any, requestsDismissalOf viewController: UIViewController)

    Parameters

    driver

    The payment driver

    viewController

    The view controller to be dismissed