#timsiegelkow

1 messages ยท Page 1 of 1 (latest)

past zealotBOT
supple belfry
#

Hi there

unborn wing
#

Hey ๐Ÿ™‚

supple belfry
#

Can you share your endpoint code? I'd be happy to take a look

#

I'm assuming you want to do an Authorization header like: -H "Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc"

unborn wing
#

currently it looks like this. the function is triggered successfully by the webhook, but, as you can read on the far right, authorization is missing

#

yes, exactly, you got it ๐Ÿ™‚

#

unfortunately I don't know how exactly to place this Bearer Authorization within the function, you know?

supple belfry
#

Yeah I'm not familiar with Deluge so I don't know how exactly that app works

#

There should be some more code somewhere that actually builds the endpoint and receives the event

#

That is where you will want to add the API key

unborn wing
#

okay I have an update

#

i wrote the function so that it would take the JSON data coming from the webhook and turn it into a "Task" within Zoho CRM that includes some of the Stripe data within its description -- just to check whether data is actually coming through the webhook

#

this is the response

#

webhook works fine, but apparently no data is transmitted

supple belfry
#

Oh that's good overall

#

It means your server is receiving the webhook and sending back a 200

#

So now you just need to actually receive the event body

#

Maybe try content = response.getJson("body")

unborn wing
#

okay I'm sorry, I somehow managed to hide the actual problem -- we still have the authentication problem

supple belfry
#

Hrrrmm

#

Yeah this really is specific to Deluge

#

I'm not sure how to pass a header in that application

unborn wing
#

okay I got you

#

thank you anyways!