#millerbean

1 messages · Page 1 of 1 (latest)

worthy schoonerBOT
solemn beacon
#

When you say it's not located on the object, where are you getting the object from?

dusk island
#

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

solemn beacon
#

Do you have an Event ID for one of the webhooks that did not contain this field?

dusk island
#

this is the json

#

as you see the property is in the json string

#

but the Session class doesn't have the property

solemn beacon
#

"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?

dusk island
#

damn - our package is way old

#

helped updated the package

#

the property is now accessible