question

Omar Reyes avatar image
Omar Reyes asked hammer commented

remote-pay-cloud CloverError: Error getting device information

I am trying to run the examples from this github repo https://github.com/clover/remote-pay-...

But I'm running into the following errors: image description image description

If I navigate to https://sandbox.dev.clover.com/v3/mer... I can view the list of devices without issue but not when running in the project.

I have tried generating the certificate as mentioned in the README by executing the following command: keytool -genkey -alias jetty7 -keyalg RSA -keystore src/test/resources/jetty.keystore -storepass password -keypass password -dname "CN=localhost"

My browser trusts the certificate as seen in the first image above but I'm still receiving the error.

I can't get past this error with the other examples as well: https://github.com/clover/clover-clou... https://github.com/clover/clover-clou...

Thoughts?

10 |2000

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

hammer avatar image
hammer answered hammer commented

It is likely that the CORS domain for the app may be wrong.

Is your site url/CORS Domain set properly? For the example above it would need to be http://localhost:8443

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.

hammer avatar image hammer ♦ commented ·

Very glad to hear it is now working! Did you change the permissions on your application after you had installed it to your old merchant? This can also cause this type of issue, since the permissions are applied at the time of the application installation. Installing it to a new merchant in this case would have applied the updated permissions. At any rate, I am very glad you overcame the issue. Thank you for posting what you did to solve it.

0 Likes 0 ·
Omar Reyes avatar image
Omar Reyes answered

Yes I had the correct CORS domain set. Is it possible that my sandbox account and merchant was restricted in some way? This is what I did to fix it. I disassociated both of my sandbox clover mini devices from my old merchant account and created a new sandbox developer account with a new merchant. Then I associated both clover minis with the new merchant. Now it’s working perfectly with the same code.

10 |2000

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