#simp_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1266261378365128787
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! have you tried logging stripeCustomer.Id to ensure it's defined?
hi, actually i i'm getting error here,
var options = new StripeInvoiceCreateOptions
{
Customer = stripeCustomer.Id,
}
'StripeInvoiceCreateOptions' does not contain a definition for 'Customer'
so there's issue with value stripeCustomer.Id
yes, so have you tried logging stripeCustomer.Id to check what's the value?
yes in debug mode i'm getting value
Which version of stripe-dotnet are you on?
StripeInvoiceCreateOptions is from very old stripe-dotnet version. I'd recommend upgrading to the latest stripe-dotnet v45.5.0 and use the guide here to create an invoice: https://docs.stripe.com/api/invoices/create?lang=dotnet
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
10.3.0
for this older version is there any option for invoice autopay ?
No, I'm afriad. I'd recommend upgrading the the latest stripe-dotnet version as previously suggested and follow this guide for invoice integration: https://docs.stripe.com/invoicing/integration?lang=dotnet
actually after upgrading version there will be alot of development for me
because it's an live application and everywhere i need to change then
We no longer support stripe-dotnet version that was this old. Many new features and properties have been added between v10 to v45. Upgrading the stripe-dotnet version is recommended
oh ok thank you