Ejemplo n.º 1
0
        public static async Task <string> UpdateInvoice(string invoiceId)
        {
            StripeConfiguration.SetApiKey("sk_test_5nCTR2UZmnOPWgZASvirbYDy");

            StripeInvoiceUpdateOptions invoiceOptions = new StripeInvoiceUpdateOptions()
            {
                Closed = false
            };

            StripeInvoiceService invoiceService = new StripeInvoiceService();
            //"in_1D18zxHWpLOEdy24Tgw0TzEq"
            //             |
            //             V
            StripeInvoice invoice = await invoiceService.UpdateAsync(invoiceId, invoiceOptions);

            return("OK");
        }