I want to connect razorpay payment gateway's webhook to Appwrite functions, but it's a
- 0
- 5
- Functions
- REST API
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
I’m not sure what you mean here by “pass headers of Appwrite”?
I think the project ID header and API key
That's why Appwrite has custom function domains now: https://appwrite.io/docs/products/functions/execution#domains
ya you are right, later i understood that , Thanks for help
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
What happens when you browse to the function domain?
it's working fine with http url
but there is no https
ssl is not added
inside Appwrite functions it's showing like "verification status" as "failed" , certificate status as blocked by verification
i didn't set anything over there sir
That might be the problem then
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
am a newbie, am sorry if i was wrong
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.
after setting the domain it is working so perfect 😀
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
Recommended threads
- Appwrite-injected variables are not avai...
I am using rust-1.83 as a runtime and try to access APPWRITE_FUNCTION_API_ENDPOINT or APPWRITE_FUNCTION_API_KEY during runtime. Both are not set during my execu...
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...
- [SOLVED] Production down - createExecuti...
Hey, Since 1.9.6 rollout in fra (~17:00 UTC, 14 Aug), POST /v1/functions/{functionId}/executions returns a 400 whenever the body includes an empty headers ob...