#stripe_connect_platform4242

1 messages · Page 1 of 1 (latest)

hexed surgeBOT
red marsh
#

Also, eek I see no params sent and it says:
Attempts to send this event to connected platform endpoints in the past 15 days

#

Is there a way to see last 30 days?

olive spire
#

Unfortunately you can only see the last 15 days

#

I'm not sure what you mean by "params didn't get processed correctly"

red marsh
#

like my app failed

#

to do the thing my app is supposed to do when we get invoice.payment_succeeded. It is not a Stripe error, it is mine, but is there a way to get the actual params so I can debug?

#

or can we force Stripe to resend?

#

oh man, I haven't tried to debug in like a year. Seems like you are now hiding a ton of data that you used to show and only giving a summary. EEK!

#

Any way to get last year of data and actual params?

olive spire
#

Ohhh, okay. I see. There's no way to resend the event or get the params unfortunately. Like, even on our side we have no access to the data.

red marsh
#

Customer emailed me with a collection of records that didn't get updated and they are all older than 30 days and I'm trying to debug but Stripe data isn't sufficient to assist

#

eeek

#

I can write a task maybe to look up these subscriptions and clean them up but I would love to figure out why they didn't get updated so I need the actual params. Hmmm.

#

ok thank you

olive spire
#

Sure thing! Best of luck

red marsh
#

I'm trying to figure out why our app didn't process certain webhooks. I am looking at a canceled subscription event customer.subscription.deleted
evt_1OaZfzJXgu5c6jhQOVWH0Dhq

The first thing I see is that our controller code has this line:
params[:type]
But I don't see type in the params. Am I losing my mind?

#

I haven't touched the app in a few months but getting a customer email that events are not being processed so I am concerned. Is there a way to get the actual params that were sent. I found an event in the last 30 days and trying to determine why it did not get processed which is hard. First thing is the "type" param my app is looking for doesn't seem to be in the params. That would do it! Any idea why my code would look for that param for the last 5 years but now I don't see it in the webhook data. I am old so my mind might be missing something here

#

i do see 'type' but not params[:type] that we are looking for

olive spire
#

I don't think the shape of the object has changed recently. I'm also not really sure what params[:type] is. An Event type should exist, but I'm not sure what the other thing is here

red marsh
#

elsif params[:type] == "customer.subscription.deleted"

#

i'm a bit confused. I copied the params I see that were sent. But I have code like:
return unless params["data"]["object"].present?

#

I do not see that....oh wait...my brain is coming back online.

#

Is there a way to get the EXACT params sent to the CONNECT platform (us) which now I am recalling may have a different data structure?

#

We are the Stripe Connect Platform so I think you send our app params in a special data format that may be different than what I see in the connected account view as event webhoook params

#

OK, oops. I copied the event data from the top but instead should have copied the event data below which was what was sent to our endpoint. It's been a year since I had to do this so forgot the details. Looks good now
irb(main):1144:0> params[:type]
=> "customer.subscription.deleted"

hexed surgeBOT
atomic cape
#

👋 stepping in as two-shoes needs to delurk. Let me catch up here

red marsh
#

i think i am ok. i wish i could see older than 30 days events. Is that really not possible?