Skip to content
Back

I want to connect razorpay payment gateway's webhook to Appwrite functions, but it's a

  • 0
  • 5
  • Functions
  • REST API
groots645#645
14 Jan, 2024, 09:22

Hi everyone, I want to connect razorpay payment gateway's webhook to Appwrite functions, but it's a POST request from payment gateway server but they are only asking the endpoint URL there is no way i can pass headers of Appwrite, how can i do this

TL;DR
The user successfully connected Razorpay payment gateway's webhook to Appwrite functions after setting the _APP_DOMAIN_TARGET env var in the .env file. Initially had trouble verifying the custom domain for Appwrite functions due to SSL certificate issues, but resolved it by following the suggestions.
14 Jan, 2024, 17:54

I’m not sure what you mean here by “pass headers of Appwrite”?

14 Jan, 2024, 18:06

I think the project ID header and API key

16 Jan, 2024, 02:04

That's why Appwrite has custom function domains now: https://appwrite.io/docs/products/functions/execution#domains

16 Jan, 2024, 02:13

ya you are right, later i understood that , Thanks for help

16 Jan, 2024, 03:27

one thing am not sure, i had purchased my domain in bigrock.in, there i had added CName called myfunction.appwrite -> appwrite.gagan.in and my Appwrite server is linked with domain appwrite.gagan.in it has been 2days still inside the functions it's still showing that domain not verified i had tried clicking on retry button so many times. did i do anything wrong on verifying it. i had added the same custom domain in Appwrite function's custom domain as myfunction.appwrite.gagan.in

16 Jan, 2024, 03:29

What happens when you browse to the function domain?

16 Jan, 2024, 03:29

it's working fine with http url

16 Jan, 2024, 03:29

but there is no https

16 Jan, 2024, 03:29

ssl is not added

16 Jan, 2024, 03:31

inside Appwrite functions it's showing like "verification status" as "failed" , certificate status as blocked by verification

16 Jan, 2024, 03:31
16 Jan, 2024, 03:35

So in your .env, what did you set the _APP_DOMAIN_TARGET env var to?

1
16 Jan, 2024, 03:36

i didn't set anything over there sir

16 Jan, 2024, 03:37

That might be the problem then

16 Jan, 2024, 03:38

i linked my Appwrite domain by setting the Appwrite ip address to the DNS, it has added the SSL certificate for the browser URL, but for function URL ssl is not there

16 Jan, 2024, 03:38

am a newbie, am sorry if i was wrong

18 Jan, 2024, 12:07

sir thanks it worked after setting the .env things, am really new to this, it would be better if there are some documentation about this, it would be helpful for any beginners.

18 Jan, 2024, 12:07

after setting the domain it is working so perfect 😀

18 Nov, 2025, 06:05

Hi there, can you share how did you implement the payments gateway, any guide or the function template, anything would be a great help.

Thanks

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more