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

    Interface CreateCardOptions

    Options for cards.create(): store a card on file for a customer.

    interface CreateCardOptions {
        billingAddress?: Address;
        cardholderName?: string;
        customerId: string;
        idempotencyKey: string;
        referenceId?: string;
        sourceId: string;
    }
    Index
    billingAddress?: Address
    cardholderName?: string
    customerId: string

    The customer the card belongs to.

    idempotencyKey: string

    Required. Square stores the card once per key, so a retry with the same key cannot create a second card. At most 45 characters.

    referenceId?: string

    Your own ID for the card, for example a user ID.

    sourceId: string

    The card to store: a card nonce from the Web Payments SDK, or the ID of a payment made with the card.