#the-farrnacle_webhooks

1 messages · Page 1 of 1 (latest)

spare sirenBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1463969220382560257

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

sharp wraith
#

In the webhook event, There is no payments object at all on the invoice and no reference to a payment_intent

#

And then when I fetch the invoice through the /v1/invoices api, I'm seeing a payment_intent field on the root of the invoice object and not through the payments.data....

sour rapids
#

hello! i've got a few things going on at the moment but i'll be with you asap

sharp wraith
#

No worries! Appreciate the help

sour rapids
#

ok looking at this now

sharp wraith
#

Yea we are using Clover. So I would expect to see the payments array everwhere

sour rapids
#

can you share an example API request ID where you saw the payment_intent property on an invoice?

sharp wraith
#

Sorry had to go find one. This one didn't actually have anything and had the same structure that I'm seeing in the webhook
req_mkCtZzUbxdkjl0

#

Perhaps it's just in the UI inspector that I'm seeing the payment_intent field

sour rapids
#

can you share more about what you mean by UI inspector? is that the workbench CLI? can you maybe share a screenshot so we're on the same page?

#

but yes, it's likely that whatever you're looking at in the UI is using a different API version than your webhook / other API calls

sharp wraith
#

Yea, it's the workbench inspector. Here's a screen recording of what I see. Hopefully you can see it haha. I had to bump it down to 720p

#

But that's good to know that the workbench is different—although, that still doesn't explain why the payments array isn't showing up in the webhook events and api responses

sour rapids
#

let me look at the specific event delivery you're referring to

#

actually i don't see a specific event ID that you've shared yet, can you grab one where you aren't seeing the payments array for me? it should look like this: evt_[random characters]

sharp wraith
#

Oh sorry, maybe I missed that. Here's an example: evt_1SpqmoEJnI2Hvavf0PRVqIPO

sour rapids
#

ahhhhh ok, i think that property requires you to expand it to see it

#

1 sec

sharp wraith
#

Ok cool, yea just did a test and it did show up after doing the expand. I guess I would've thought that even if you didn't expand payments the base would still show up but I guess not. Thanks for your help!

sour rapids
#

yep of course!