@sumup/sdk
    Preparing search index...

    Type Alias CreateReaderCheckoutRequest

    CreateReaderCheckoutRequest

    Payment details for a Reader Checkout.

    type CreateReaderCheckoutRequest = {
        aade?: {
            provider_id: string;
            signature: string;
            signature_data: string;
        };
        affiliate?: | {
            app_id: string;
            foreign_transaction_id?: string;
            key: string;
            tags?: Record<string, unknown>;
        }
        | null;
        card_type?: "credit"
        | "debit";
        description?: string;
        installments?: number | null;
        payment_type?: "card" | "pix";
        return_url?: string;
        tip_rates?: number[];
        tip_timeout?: number;
        total_amount: { currency: string; minor_unit: number; value: number };
    }
    Index
    aade?: { provider_id: string; signature: string; signature_data: string }

    Optional object containing data for transactions from ERP integrators in Greece that comply with the AADE 1155 protocol. When such regulatory/business requirements apply, this object must be provided and contains the data needed to validate the transaction with the AADE signature provider.

    Type Declaration

    • provider_id: string

      The identifier of the AADE signature provider.

    • signature: string

      The base64 encoded signature of the transaction data.

    • signature_data: string

      The string containing the signed transaction data.

    affiliate?:
        | {
            app_id: string;
            foreign_transaction_id?: string;
            key: string;
            tags?: Record<string, unknown>;
        }
        | null

    Affiliate

    Optional affiliate metadata associated with the checkout's payment. Provide both app_id and key when including this object.

    Type Declaration

    • {
          app_id: string;
          foreign_transaction_id?: string;
          key: string;
          tags?: Record<string, unknown>;
      }
      • app_id: string

        Integrator application identifier from the Affiliate Keys page. Required when the affiliate object is provided.

      • Optionalforeign_transaction_id?: string

        Integrator-owned transaction reference. Optional. Can be used to retrieve the transaction via the Transactions API.

      • key: string

        Affiliate key generated in the Affiliate Keys page. Required when the affiliate object is provided.

      • Optionaltags?: Record<string, unknown>

        Optional key-value metadata associated with the transaction.

    • null
    card_type?: "credit" | "debit"

    The card type of the card used for the transaction. It is required only for some countries (e.g: Brazil).

    description?: string

    Description of the checkout to be shown in the Merchant Sales

    installments?: number | null

    Number of installments for the transaction. It may vary according to the merchant country. For example, in Brazil, the maximum number of installments is 12.

    Omit if the merchant country does not support installments. Otherwise, the checkout will be rejected.

    Min: 1

    payment_type?: "card" | "pix"

    The payment method type for the transaction. Defaults to card.

    Use pix to initiate a Pix QR-code payment flow on the device. Pix is only supported for Brazilian merchants; other merchants will receive a 422 error.

    Default: "card"

    return_url?: string

    Webhook URL to which the payment result will be sent. It must be a HTTPS url.

    Format: uri

    tip_rates?: number[]

    Exactly three distinct tipping rates to be displayed to the cardholder. Each rate is a fraction between 0.01 and 1.00 in increments of 0.01. The rates are sorted in ascending order by the server.

    Unique items only

    Min items: 3

    Max items: 3

    tip_timeout?: number

    Time in seconds the cardholder has to select a tip rate. If not provided, the default value is 30 seconds.

    It can only be set if tip_rates is provided.

    Note: If the target device is a Solo, it must be in version 3.3.38.0 or higher.

    Default: 30

    Min: 30

    Max: 120

    total_amount: { currency: string; minor_unit: number; value: number }

    Money

    Amount structure.

    The amount is represented as an integer value altogether with the currency and the minor unit.

    For example, EUR 1.00 is represented as value 100 with minor unit of 2.

    Type Declaration

    • currency: string

      Currency ISO 4217 code

    • minor_unit: number

      The minor units of the currency. It represents the number of decimals of the currency. For the currencies CLP, COP and HUF, the minor unit is 0.

      Min: 0

    • value: number

      Integer value of the amount.

      Min: 0