79762708

Date: 2025-09-12 08:56:32
Score: 1.5
Natty:
Report link

Maybe i should have asked sooner

var invoiceService = new InvoiceService();
    var invoice = await invoiceService.GetAsync(subscription.LatestInvoice.Id, new InvoiceGetOptions
    {
      Expand = ["payments.data.payment.payment_intent"]
    });

    var clientSecret = invoice.Payments.Data.FirstOrDefault()?.Payment?.PaymentIntent?.ClientSecret;

This was my solution if anybody from stripe sees this can you provide better answer ? And maybe update c# examples they are written in .net 6 we are getting .net 10 an you could also use minimal apis now to mimic node style

Reasons:
  • RegEx Blacklisted phrase (2.5): can you provide
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Dživo Jelić