Class PaymentDTO
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
PaymentIdstringThe provider's identifier, and what its webhooks name later — so it is what a caller stores to recognise the settlement when it arrives.
StatusPaymentStatusTypeWhat became of it.
ClientSecretstringOnly 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
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
Status
What became of it.
public PaymentStatusType Status { get; init; }
Property Value
Succeeded
The only status that means the money arrived.
public bool Succeeded { get; }