question

shao avatar image
shao asked shao commented

APP type (Get token from merchant, and call API from firebase cloud function)

Hi,
I created a food ordering App using flutter, which can build both iOS and Android app.

What I want to achieve with Clover is that after the customer place an order with the merchant who link to their Clover will trigger our app or cloud function to call the Clover create order API.

I have done developing this feature with sandbox mode. Now I am wondering in this case, which type of app should I submit?
Currently, I ask the merchant to grant the permission and get the token using the webview inside the app. And use this token to call REST API in firebase cloud function every time a new order come in.

I think it's most likely the case of REST clients, but it requires me to provide the sire URL. Since I build this app with google firebase and has no website, I don't know how to fill the form.

Hope that I state my problem clearly, and thanks for any help!

REST APIOAuthAPI Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

Since you are using the REST API only, this will be a web app (REST client).

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Richelle Herrli avatar image
Richelle Herrli answered shao commented

The site URL is used as the redirect link from the merchant's Clover dashboard. Every Clover app includes a way to open the app via the Clover merchant account, whether that's via the web dashboard or on the Clover device. If you don't have a website for the merchant to access/use, I'd recommend creating a landing page instructing the merchant on next steps/how to access the app so that they can get set up or modify their settings.

Regardless of whether you currently have a website, you will need a website to host app elements such as the privacy policy and terms of service for your app.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shao avatar image shao commented ·

Got it, thanks! This helps a lot.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community