interface MyPayment {
    amountPlanned: CentPrecisionMoney;
    anonymousId?: string;
    custom?: CustomFields;
    customer?: CustomerReference;
    id: string;
    paymentMethodInfo: PaymentMethodInfo;
    transactions: Transaction[];
    version: number;
}

Properties

amountPlanned: CentPrecisionMoney

Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.

anonymousId?: string

Anonymous session associated with the Payment. Set automatically with a token for an anonymous session. Either customer or anonymousId is present.

custom?: CustomFields

Custom Fields defined for the Payment.

customer?: CustomerReference

Reference to a Customer associated with the Payment. Set automatically with a password flow token. Either customer or anonymousId is present.

id: string

Unique identifier of the Payment.

paymentMethodInfo: PaymentMethodInfo

Information regarding the payment interface (for example, a PSP), and the specific payment method used.

transactions: Transaction[]

Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.

version: number

Current version of the Payment.