@webshop/root - v1.0.0
    Preparing search index...

    Service that communicates with the checkout API endpoints

    Abdelrahmen Sobhy

    Index

    Constructors

    Methods

    • Confirms the checkout after returning from the PSP payment page.

      Parameters

      • orderId: number

        ID of the cart_order from the URL parameter

      Returns Promise<CheckoutConfirmResult | undefined>

    • Starts the checkout and returns the PSP checkout URL.

      Parameters

      • baseUrl: string

        window.location.origin

      • OptionaldiscountCode: string

        Optional discount code to apply

      Returns Promise<CheckoutStartResult | undefined>