#millerbean
1 messages · Page 1 of 1 (latest)
When you say it's not located on the object, where are you getting the object from?
a StripeWebHooks
stripeEvent = EventUtility.ConstructEvent(
json,
Request.Headers["Stripe-Signature"],
_appSettings.Value.Stripe.WebHookSecret,
300,
false);
if (stripeEvent.Type == Events.CheckoutSessionCompleted)
{
var session = stripeEvent.Data.Object as Stripe.Checkout.Session;
}
the session object doesn't have the paymentstatus property
using the Stripe.net package version 37.35.0
Do you have an Event ID for one of the webhooks that did not contain this field?
this is the json
as you see the property is in the json string
but the Session class doesn't have the property
"payment_status": "unpaid", appears to be in the payload of the Event, but it doesn't look like your webhook endpoint is configured to listen for checkout.session.complete: https://dashboard.stripe.com/test/events/evt_1Lk9uVJW1cxLRBYEwpvJ1A4v
Are you getting the object data from the API response when you create the Checkout Session? Or are you getting it from checkout.session.complete?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.