question

kacyjames avatar image
kacyjames asked racheladmin Deactivated answered

Retrieving an Auth Token for Remote Pay Cloud

I'm currently using the remote pay cloud library for JavaScript and am getting a 401 when I attempt to connect to the clover hardware specified in my CloverConnectorFactory. I'm currently using my app secret key where the oauthToken would go below. Is that correct? If not, how would I go about obtaining an oauth key in the sandbox environment. It wasn't immediately clear after reading through https://docs.clover.com/build/oauth-2-0/. Does the user of the system have to authenticate through a login page each time, or is this something that can be done silently when the application starts (after the user logs in with our company's own auth?)

const connector = new clover.CloverConnectorFactory().createICloverConnector({      'oauthToken': '<redacted>', // <-- Is this the app secret, or a key retrieved from auth?       
    'merchantId': '<redacted>',      
    'clientId'  : '<redacted>',      
    'remoteApplicationId': '<redacted>',      
    'deviceSerialId': '<redacted>',      
    'domain': 'https://sandbox.dev.clover.com/'    
});
Cloud Pay DisplayRemote Pay Cloud
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.

kacyjames avatar image kacyjames commented ·
Yes, I'm using remote-pay-cloud 1.2.0
0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community