#TomGullen
1 messages · Page 1 of 1 (latest)
Hello thanks for looking!
Of course. Trying to think of what this might be
Can you access other data on that invoice or in other events in general?
one moment
invoice.AccountName.BasicLog();
invoice.Attempted.ToString().BasicLog();
invoice.Status.BasicLog();
invoice.PeriodEnd.ToString().BasicLog();
These all work
(Just log them to a txt file)
Scirra Ltd
True
paid
19/12/2022 14:31:56
Interesting. And just this subscription ID is not available despite being available in the event
Looks that way, the actual error is:
The resource ID cannot be null or whitespace.
Parameter name: id
Just as a quick check, does your code show the ID for the correct invoice here? (in_1MGkNkIq2o1LAhVTEo8afr3a)
If I log invoice.Id I get in_1MGkNkIq2o1LAhVTEo8afr3a
Sorry for clarity full error message:
The resource ID cannot be null or whitespace.
Parameter name: id
at Stripe.Service`1.InstanceUrl(String id) in /_/src/Stripe.net/Services/_base/Service.cs:line 579
at C3.Code.Helpers.AssetStore.PaymentProcessors.Stripe.Invoices.OnInvoicePaymentSucceeded(Invoice invoice) in C:\Users\Tom\Dropbox (Scirra Ltd)\Tom\Websites\Construct SVN\Web\branches\dev\Source\C3Alpha2\Code\Helpers\AssetStore\PaymentProcessors\Stripe\Invoices.cs:line 25
at C3.Code.Helpers.AssetStore.PaymentProcessors.Stripe.Webhook.HandleAssetStoreWebhookMessage(String json) in C:\Users\Tom\Dropbox (Scirra Ltd)\Tom\Websites\Construct SVN\Web\branches\dev\Source\C3Alpha2\Code\Helpers\AssetStore\PaymentProcessors\Stripe\Webhook.cs:line 21
My apologies
.NET is showing the wrong line for the error
This isn't a bug
Really sorry, was scratching my head for ages, .NET shows the line to get subscription ID but the error is actually like 20 lines down
Oh interesting thank you. I was checking in to your webhook config and whatnot. So you know how to fix this or at least your next steps here?
Happy to help debug that error as well
No worries, glad you could find what was happening
It's OK I got it from here
You guys are great thank you again hope you have a good day!
Of course, have a good day yourself!