Class PaymentSubscriptionStartDTO
A subscription just started from a saved payment method, and what became of its first payment.
public record PaymentSubscriptionStartDTO : IEquatable<PaymentSubscriptionStartDTO>
- Inheritance
-
PaymentSubscriptionStartDTO
- Implements
- Inherited Members
Constructors
PaymentSubscriptionStartDTO(PaymentSubscriptionDTO, PaymentStatusType, string?, string?)
A subscription just started from a saved payment method, and what became of its first payment.
public PaymentSubscriptionStartDTO(PaymentSubscriptionDTO Subscription, PaymentStatusType FirstPayment, string? ClientSecret, string? FailureReason)
Parameters
SubscriptionPaymentSubscriptionDTOThe subscription as it stands now.
FirstPaymentPaymentStatusTypeThe first invoice's payment: Succeeded when it was charged (or there was nothing to charge), RequiresAction when the card wants its owner to confirm, and Failed when it was refused.
ClientSecretstringWhat the browser confirms the first payment with, on RequiresAction. A credential scoped to that payment: it goes back to the customer who started it and nowhere else.
FailureReasonstringWhy the first payment was refused, on Failed.
Properties
ClientSecret
What the browser confirms the first payment with, on RequiresAction. A credential scoped to that payment: it goes back to the customer who started it and nowhere else.
public string? ClientSecret { get; init; }
Property Value
FailureReason
Why the first payment was refused, on Failed.
public string? FailureReason { get; init; }
Property Value
FirstPayment
The first invoice's payment: Succeeded when it was charged (or there was nothing to charge), RequiresAction when the card wants its owner to confirm, and Failed when it was refused.
public PaymentStatusType FirstPayment { get; init; }
Property Value
Subscription
The subscription as it stands now.
public PaymentSubscriptionDTO Subscription { get; init; }