Hi,
I am getting the following error from the application: after updating to net9.
The name 'Events' does not exist in the current context : Payment Service: Line 86
|
if (stripeEvent.Type == Events.CheckoutSessionCompleted) |
I believe it's now a string and should be "checkout.session.completed"
My solution is the following:
I created a constatnt for this in Infrastructure.
namespace BlazorEcommerce.Domain.Events
{
public static class Events
{
public const string CheckoutSessionCompleted= "checkout.session.completed";
}
}
Hi,
I am getting the following error from the application: after updating to net9.
The name 'Events' does not exist in the current context : Payment Service: Line 86
blazor-ecommerce/src/BlazorEcommerce.Infrastructure/Service/PaymentService.cs
Line 86 in 9765f3f
I believe it's now a string and should be "checkout.session.completed"
My solution is the following:
I created a constatnt for this in Infrastructure.
namespace BlazorEcommerce.Domain.Events
{
public static class Events
{
public const string CheckoutSessionCompleted= "checkout.session.completed";
}
}