Verestro Paytool Client SDK
    Preparing search index...

    Interface CardFormEmbedState

    Current state of the embedded card form.

    interface CardFormEmbedState {
        cardNumberInfo?: CardNumberInfo;
        isValid: boolean;
        paymentMethodData?:
            | null
            | StoredCardEncryptedCvc
            | StoredPaymentMethod
            | EncryptedCardData;
        senderData?: {
            cedula?: string;
            email?: string;
            firstName?: string;
            lastName?: string;
        };
        token: null
        | string;
    }
    Index

    Properties

    cardNumberInfo?: CardNumberInfo

    Lightweight descriptor for the selected card: stored vs new card info.

    isValid: boolean

    Determines whether the form is filled correctly.

    paymentMethodData?:
        | null
        | StoredCardEncryptedCvc
        | StoredPaymentMethod
        | EncryptedCardData

    Selected payment method data. StoredCardEncryptedCvc, StoredPaymentMethod, EncryptedCardData or null if not selected.

    senderData?: {
        cedula?: string;
        email?: string;
        firstName?: string;
        lastName?: string;
    }

    Sender form information filled in the card form (only present if those inputs are enabled).

    token: null | string

    Deprecated: token used for calculating a credit card's commission fee. Equals null when the card number is invalid.

    This field will be removed in a future release. Use CardFormEmbedState.cardNumberInfo for client-side validation/branching and send CardFormEmbedState.paymentMethodData to your backend when creating a transaction.