Skip to content

The name 'Events' does not exist in the current context #3

Description

@ijowett3

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";
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions