Skip to content

    SAQ-AEP Reference

    Here you can find all needed methods and respective parameters to further enrich your checkout workflow for SAQ-AEP solution.

    All methods should be called on PayEngine object (e.g PayEngine.desiredMethod(parameters)).

    createPaymentInstrument

    Receives a payment identifier from the Bridge API based on the given credit card data.

    NameMandatoryTypeDefaultDescription
    typeYESStringN/AThe requested payment instrument type. Possible values are 'creditcard' or 'sepa'. It's recommended to use PayEngine.userVariables.paymentInstrumenTypes definitions.
    paymentDataYESObjectN/AAll the raw payment data. If type is credit card: 'cardNumber', 'verification', 'expiryMonth', expiryYear' and 'cardHolder' If type is SEPA: 'iban' and 'bic', 'bankName', 'accountHolder' Fore more information please refer to the API definition of the the paymen-instruments endpoint.
    mpidNOStringN/AUnique identifier/slug provided by the merchant, can benull
    callbackYESfunctionN/ACustom function which should handle the async responce from the Bridge API

    validation methods

    The Bridge API provides various validation methods. They give the merchant a handy tool to validate the user input and can be attached to various events like blur, onkeydown, etc.

    All this checks are always applied when the function PayEngine.createPaymentInstrument() is called.

    validateCardNumber

    Validates the card number. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefaultDescription
    valueYESStringN/AThe 16 to 19 number sequence on the front side of the card

    getCardType

    Returns the type of the card, for example, Visa, MasterCard, JBC, etc.

    NameMandatoryTypeDefaultDescription
    valueYESStringN/AThe 16 to 19 number sequence on the front side of the card

    validateVerification

    Validates the verification code. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AThe 3 to 4 number sequence on the back side of the card
    ccNumberOrTypeYESStringN/AThe card type, e.g. VISA, MasterCard, JBC, etc.

    validateCardHolder

    Validates the name on the card. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AA sequence of characters on the front side of the card

    validateExpiry

    Validates the name on the card. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    expiryYearYESStringN/A2-digits number representing the year
    expiryMonthYESStringN/A2-digits number representing the month

    validateIban

    Validates the given IBAN. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AThe bank account IBAN

    validateBic

    Validates the given BIC. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AThe bank account BIC/SWIFT

    validateBankName

    Validates the given Bank Name. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AA sequence of characters

    validateAccountHolder

    Validates the name of the account holder. Returns empty object on success or array of errors on failure.

    NameMandatoryTypeDefault ValueDescription
    valueYESStringN/AA sequence of characters

    Was this helpful?

    What was your feeling about it?