CardImageVerificationSheet

final public class CardImageVerificationSheet

A drop-in class that presents a sheet for a user to verify their credit card

  • Initializes an CardImageVerificationSheet

    Declaration

    Swift

    public init(
        cardImageVerificationIntentId: String,
        cardImageVerificationIntentSecret: String,
        configuration: Configuration = Configuration()
    )

    Parameters

    cardImageVerificationIntentId

    The id of a Stripe CardImageVerificationIntent object.

    cardImageVerificationIntentSecret

    The client secret of a Stripe CardImageVerificationIntent object.

  • Presents a sheet for a customer to verify their card.

    Declaration

    Swift

    public func present(
        from presentingViewController: UIViewController,
        completion: @escaping (CardImageVerificationSheetResult) -> Void,
        animated: Bool =  true
    )

    Parameters

    presentingViewController

    The view controller to present the card image verification sheet.

    completion

    Called with the result of the card image verification flow after the sheet is dismissed.