Better Payment 0.11.1 API
    Preparing search index...

    Interface MockPaymentRecord

    A payment as the mock bank sees it (returned by getRecord() and in rawResponse)

    interface MockPaymentRecord {
        amount: number;
        capturedAmount: number;
        cardLastFour?: string;
        conversationId?: string;
        createdAt: string;
        currency: string;
        errorCode?: PaymentErrorCode;
        installment: number;
        paymentId: string;
        preAuth: boolean;
        refundedAmount: number;
        refunds: { amount: number; refundId: string }[];
        state: MockPaymentState;
    }
    Index
    amount: number

    Amounts in minor units (kuruş/cents)

    capturedAmount: number

    Captured amount for pre-authorizations, otherwise equal to amount

    cardLastFour?: string
    conversationId?: string
    createdAt: string
    currency: string
    errorCode?: PaymentErrorCode
    installment: number
    paymentId: string
    preAuth: boolean
    refundedAmount: number
    refunds: { amount: number; refundId: string }[]