question

girish avatar image
girish asked girish commented

How to integrate my website with the Clover Mini device for sandbox account

I have implemented payment integration on my website, and now I want to integrate my website with the Clover Mini device.

My question is how to connect to the Clover Mini device? I have a sandbox account, and I don't have a Clover Mini device; my client has a Clover Mini device for production.

How can I connect the Clover Mini device to my website for the Sandbox account? Is there any simulator available for the Clover Mini device?

PaymentsClover MiniSandbox
10 |2000

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

bryanvargas avatar image
bryanvargas answered

I would recommend going through our REST Pay Display documentation

https://docs.clover.com/docs/rest-pay-intro

You can have your web app make these APIs calls to connect/ prompt the device for payment.

10 |2000

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

girish avatar image
girish answered

Hi, Thank you for your response. I reviewed the REST Pay Display documentation and made API calls on the Postman app using the client's device.

I instructed the client to set up their Clover account on their Clover device. After that, I made API calls on the Postman app using the client's MerchantId and Device Serial ID, but I didn't receive the expected response as documented.

The APIs I called are:

https://api.clover.com/v1/device/ping

https://api.clover.com/v1/device/welcome

https://api.clover.com/v1/payments

However, I did not receive the expected results. I have attached an image from Postman for reference. Please provide the exact solution so I can implement the code for Clover device.1699008458529.png

1699008362640.png


1699008362640.png (193.8 KiB)
1699008458529.png (191.5 KiB)
10 |2000

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

girish avatar image
girish answered

Please provide the response regarding Clover device connect. because given Rest pay display API not working proper

10 |2000

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

girish avatar image
girish answered

I called the APIs in Postman for production level but got 204 No Content. I've been facing this error last 20 days and still have not found any feasible solution. please provide the working solution or proper guidelines.untitled.png


untitled.png (143.2 KiB)
10 |2000

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

bryanvargas avatar image
bryanvargas answered

you are missing a path value in the URL the path URL should be

{baseURL}/connect/v1/device/ping

Add "connect" after the base url to all your calls and this will resolve the problem.

The correct URL format is also in our docs: https://docs.clover.com/docs/build-a-cloud-connection-request

10 |2000

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

girish avatar image
girish answered

Thank you for the response.

Now I have another query: when I call the APIs in Postman: https://api.clover.com/connect/v1/device/ping.

I am getting a response with status code 500 Internal server error.

{ "message" : "Could not verify authentication token with COS server." , "requestId" : "33badda6-5278184" , "requestType" : "PING_DEVICE_GET" , "type" : "ERROR" }


Now my question is currently I used the authentication for the Bearer token. but want to use the OAuth 2.0 token to generate the access token.

I reviewed the Oauth 2.0 documentation: https://docs.clover.com/docs/using-oauth-20. I successfully generated the access token using the AppId and AppSecret in creating the sandbox developer account and created the app.

But In this production case When I tried to create the developer account for the app. I wasn't able to log in. Please see the attached image.

I can do the same thing in the sandbox account but not for the production. Please reply as soon as possible. Thank you.img-2.png


img-2.png (331.0 KiB)
10 |2000

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

bryanvargas avatar image
bryanvargas answered

SO the OAuth2.0 flow is the same between environments. The only thing different is the base URL (Sandbox vs. prod) and you will use the PROD AppID and AppSecret. The merchants still have to download your app and launch it for OAuth to kick off and you need to save that access token in your backend(one the app is approved and published).

As far as log in, have you tried resetting your password and do you know the PROD developer ID?

10 |2000

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

girish avatar image
girish answered

Thank you for the response.

Yes, I am aware that the OAuth 2.0 flow is the same across environments.

However, my query is that I am unable to log in to the developer account for my production account. Here, I am providing my Merchant ID: "4TCFE5HHQJ8W1."

Please guide me on how to create my production developer account, as I have already created a sandbox developer account which does not work for the production environment.

Your prompt assistance in this matter would be greatly appreciated as it is a bit urgent.

I hope you understand. Thank you in advance!

10 |2000

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

bryanvargas avatar image
bryanvargas answered

Please use this link to create a PROD NA developer account

https://www.clover.com/developer-home/create-account


Prod dev account creations are also highlighted here in our docs: https://docs.clover.com/docs/clover-app-approval-process


Scroll down to Developers> Developer Dashboard> Create Developer Account

I recommend to fully go through our developer docs.

10 |2000

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

girish avatar image
girish answered bryanvargas commented

Hi, I have already created a PROD NA developer account using the following link: https://www.clover.com/developer-home/create-account

But when I tried to log in to the PROD NA developer account I got the error :
"Invalid login credentials. Please try again"

When I try to forget the password & send the email regarding resetting the password. I didn't receive any email.img.png


Please resolve this issue. I tried to create a PROD NA developer account for several days but had no success.


img.png (447.7 KiB)
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.

bryanvargas avatar image bryanvargas ♦♦ commented ·
what is the developer ID for PROD.
0 Likes 0 ·

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