@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface CreatePaymentOptions

    Create payment options

    interface CreatePaymentOptions {
        amount: number;
        autocomplete?: boolean;
        buyerEmailAddress?: string;
        currency?: "USD" | "CAD" | "GBP" | "EUR" | "AUD" | "JPY";
        customerDetails?: { customerInitiated?: boolean; sellerKeyedIn?: boolean };
        customerId?: string;
        idempotencyKey: string;
        note?: string;
        orderId?: string;
        referenceId?: string;
        sourceId: string;
        statementDescriptionIdentifier?: string;
        verificationToken?: string;
    }
    Index
    amount: number
    autocomplete?: boolean
    buyerEmailAddress?: string

    The buyer's email address, for the receipt and risk checks.

    currency?: "USD" | "CAD" | "GBP" | "EUR" | "AUD" | "JPY"
    customerDetails?: { customerInitiated?: boolean; sellerKeyedIn?: boolean }

    Who started the payment. Set customerInitiated: false for a charge of a card on file that the buyer did not start (a merchant-initiated transaction, such as a renewal); sellerKeyedIn: true when the seller typed in the card details.

    customerId?: string
    idempotencyKey: string

    Required. Square takes the payment once per key, so a retry with the same key cannot charge twice. Reuse a key only to resend the identical request (for example after a network error); see createIdempotencyKey. At most 45 characters.

    note?: string
    orderId?: string
    referenceId?: string
    sourceId: string
    statementDescriptionIdentifier?: string

    Text added to the seller's name on the buyer's card statement (Square truncates the combined text to the card network's limit).

    verificationToken?: string

    A buyer verification token from the Web Payments SDK verifyBuyer(). Square has deprecated verifyBuyer() (tokenize() now runs buyer verification itself), so new integrations should leave this unset; it is kept for integrations that still send one.