- /// Attaches a PaymentIntent to the invoice, adding it to the list of payments.
- /// When the PaymentIntent’s status changes to succeeded, the payment is credited to
- /// the invoice, increasing its amount_paid. When the invoice is fully paid, the
- /// invoice’s status becomes paid.
.
- ///
- /// If the PaymentIntent’s status is already succeeded when it is attached, it is
- /// credited to the invoice immediately.
.
- ///
- /// Related guide: Create an
- /// invoice payment
.
- ///
- public virtual Invoice AttachPaymentIntent(string id, InvoiceAttachPaymentIntentOptions options = null, RequestOptions requestOptions = null)
- {
- return this.Request