Table of Contents

Class PaymentDTO

Namespace
NuvTools.Payment.DTOs
Assembly
NuvTools.Payment.dll

One payment's outcome.

public record PaymentDTO : IEquatable<PaymentDTO>
Inheritance
PaymentDTO
Implements
Inherited Members

Constructors

PaymentDTO(string, PaymentStatusType, string?)

One payment's outcome.

public PaymentDTO(string PaymentId, PaymentStatusType Status, string? ClientSecret)

Parameters

PaymentId string

The provider's identifier, and what its webhooks name later — so it is what a caller stores to recognise the settlement when it arrives.

Status PaymentStatusType

What became of it.

ClientSecret string

Only useful when the payment needs the customer back to finish it; null otherwise.

Properties

ClientSecret

Only useful when the payment needs the customer back to finish it; null otherwise.

public string? ClientSecret { get; init; }

Property Value

string

PaymentId

The provider's identifier, and what its webhooks name later — so it is what a caller stores to recognise the settlement when it arrives.

public string PaymentId { get; init; }

Property Value

string

Status

What became of it.

public PaymentStatusType Status { get; init; }

Property Value

PaymentStatusType

Succeeded

The only status that means the money arrived.

public bool Succeeded { get; }

Property Value

bool