@sumup/sdk
    Preparing search index...

    Class Checkouts

    API resource for the Checkouts endpoints.

    Checkouts represent online payment sessions that you create before attempting to charge a payer. A checkout captures the payment intent, such as the amount, currency, merchant, and optional customer or redirect settings, and then moves through its lifecycle as you process it.

    Use this tag to:

    • create a checkout before collecting or confirming payment details
    • process the checkout with a card, saved card, wallet, or supported alternative payment method
    • retrieve or list checkouts to inspect their current state and associated payment attempts
    • deactivate a checkout that should no longer be used

    Typical workflow:

    • create a checkout with the order amount, currency, and merchant information
    • process the checkout through SumUp client tools such as the Payment Widget and Swift Checkout SDK
    • retrieve the checkout or use the Transactions endpoints to inspect the resulting payment record

    Checkouts are used to initiate and orchestrate online payments. Transactions remain the authoritative record of the resulting payment outcome.

    Hierarchy

    • APIResource
      • Checkouts
    Index
    _client: SumUp
    • Parameters

      • query: QueryParams | undefined
      • names: Record<string, string>

      Returns QueryParams | undefined

    • Retrieves a checkout by its SumUp checkout_id. After processing a payment, returning from a redirect, or receiving a checkout notification, retrieve the checkout to confirm its current status before updating your order or displaying the payment outcome to the payer.

      Parameters

      Returns Promise<CheckoutSuccess>

    • :::caution[PCI DSS compliance required] When you submit raw card details directly to the Checkout API, your systems store, process, or transmit cardholder data and are therefore subject to applicable PCI DSS requirements. You should only use this integration if your environment is appropriately PCI DSS compliant. :::

      Processing a checkout will attempt to charge the provided payment instrument for the amount of the specified checkout resource initiated in the Create a checkout endpoint.

      A processing response can require an additional payer action, such as a 3DS challenge or a payment-provider redirect. If next_step is returned, follow its instructions to continue the payment flow.

      Retrieve the checkout afterwards to confirm its payment status. Acceptance of the processing request does not by itself mean the checkout is paid.

      Parameters

      Returns Promise<CheckoutAccepted | ProcessCheckoutResponse>