Ravak Configurator
    Preparing search index...

    Type Alias CheckoutContactDetailsCallback

    CheckoutContactDetailsCallback: (
        context: {
            configurator: Configurator;
            contactDetails: DemandContactAPIModel;
            contactRequirements: DemandFormContactRequirements;
            demandItems: DemandItemAPIModel[];
            formType: DemandFormType;
            selectedOptions: ParameterOptions;
        },
    ) => false
    | Promise<false>
    | unknown

    Function that is called during checkout process after the user successfully submitted their validated contact details, before sending the data to API and displaying the checkout result screen.

    Return false to prevent sending the submitted data to API and displaying the checkout result screen.

    This function can be asynchronous (it will be awaited), but does not have to be.

    Type declaration

      async function handleCheckoutContactDetails(context) {
    await MyApi.saveDemand({
    items: context.demandItems,
    user: context.contactDetails,
    });
    WebPage.showToast("We've got your demand!");
    return false;
    }