question

saurav avatar image
saurav asked bjphilli commented

clover/remote-pay-cloud demo code not working

We have configured clove/remote-pay-cloud codes in our server. We have configured our sandbox account with device.

We are calling cloudindex.html by giving Client ID and Clover Server URL. “Authenticate to Clover” is working fine. We are getting token but fetching devices and clover/v2/remotepay is not working. On checking console we are getting “ CORS header 'Access-Control-Allow-Origin' missing” error.

Please tell us how it will work.

8 comments
10 |2000

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

Mike M avatar image Mike M commented ·
0 Likes 0 ·
saurav avatar image saurav commented ·

We have checked this link. Correct Site Url and CORS Domain is set. Apps we are working is for US client and server. Autho Code is working fine. We are testing in http://sandbox.dev.clover.com/. But still not working. Still getting CORS header 'Access-Control-Allow-Origin' missing error

0 Likes 0 ·
anthonypinto avatar image anthonypinto commented ·

Are you using the default client id, or are you using the id of your own Clover web app? Please give as much detail as possible about what you are trying to do, when it fails, and what errors are returned.

0 Likes 0 ·
saurav avatar image saurav commented ·

We are using Id of our Clover web App. In Client ID : we are giving our Clover Apps Id In Clover Server URL: http://sandbox.dev.clover.com/ We are getting access token after login and redirection. But when http://sandbox.dev.clover.com/v3/merchants/{merchant_id}/devices is called from AJAX in cloud_index.html it is giving Cross-Origin Request Blocked error..

0 Likes 0 ·
johnhuffsmith avatar image johnhuffsmith commented ·

I'm having this exact same issue. Did you find a resolution?

0 Likes 0 ·
Show more comments

1 Answer

hammer avatar image
hammer answered

OBE - Closing Dead thread.

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