Join the Webstudio community

Updated 4 weeks ago

Apple pay merchant validation with Stripe

Is it possible to validate Apple as a payment system on a Webstudio site?
To do this, you need to host a file on yourdomain.com/file and I don't understand how to do this when using Webstudio.

https://docs.stripe.com/apple-pay
B
O
32 comments
Apple pay merchant validation with Stripe
currently you would need to do this via cloudflare
Would you have some tutorial ? Should I use clouflare tunnel and host the file by myself on a server ?
we don't have one, but you can probably find something
yes I am trying but I start to realise that it's not easy. It seems like I need to find a way to host the file by myself. Maybe an interesting feature would be to be able to directly host a file on .well-known repository? Though I guess it's not a priority on the roadmap...
yeah, we already discussed internally to add a basic code/text editor and be able to create some arbitrary files and route them via pages
I upvote this : )
actually, looking at this documentation, this doesn't look like just a simple file
this looks like you need a backend to provide that information
this actually looks outside of scope for webstudio
this is a pure API thing that you need to add
mmm maybe I am wrong but it's a simple file that you download from Stripe and have to host on youdomain.com/.well-known.
Maybe you are looking at Apple doc ? Stripe facilitates this
it doesn't look like it
I mean I want to propose apple payment through stripe
oh you mean the domain association file
this can't be so hard
I don't think I need API for this
problem is that I don't know where to host this file
domain association file that would a regular file yes
I think I have to host somewhere, create a cloudflare tunnel that redirects the url to the place where I host the file
but it's weird to open a server just for this
оust url rewriter that would point that url to any file, for example on github
no need forr a server
also you can create a worker directly in cloudflare and inline that content, so it wouldn't require any separate server
you can do all that directly from cloudflare ui
thank you I will try
don't need cli for this, its all possible from UI
I succeded thanks to ChatGPT but sincerely I am not sure that I could well explained what I've done 😬
Add a reply
Sign up and join the conversation on Discord