question

mfiorentino avatar image
mfiorentino asked mfiorentino commented

non-dynamic token

Hello,
I managed to do the semi integration via the cloud using the sdk browser node.js following the tutorial https://github.com/clover/codelab-remote-pay-cloud. My problem is the generation of the token that is dynamic i need of fixed token; using not-dynamic token that I created on my sandbox account does not work, I generate it at every session logging on https://sandbox.dev.clover.com/developers/ and it work. Is there a possibility to generate a token that never expires? Thanks
semi-integrations
5 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.

Greg avatar image Greg commented ·

Hi @mfiorentino,

The access_token you get through OAuth in the tutorial should work if used again. Have you tried using the same token that worked before?

Greg

0 Likes 0 ·
mfiorentino avatar image mfiorentino commented ·
I have a system developed in Asp.Net and everything works if I make a payment locally on the server (in localhost). The problem is that when I try to connect to clover from a client (other ip) gives me token error because I can not use the token that I have generated on the server. So in localhost it works, but when I try to run that code from the outside it gives me 401 error. There is no possibility of generating a universal permanent token that I can use from any client?Thanks
0 Likes 0 ·
Greg avatar image Greg mfiorentino commented ·

Tokens are specific to merchant/application, and each application has a site URL and CORS address associated with it. You will only be able to get access using the token from only that address.

0 Likes 0 ·
mfiorentino avatar image mfiorentino commented ·
My problem is that I can not generate a token from the client with the server address.
I'm using OAUTH2 and I get the following error: Redirect URL rejected. Either redirect URL http: // localhost:82 / login is not valid or does not start with site URL http: // localhost: 8080.How do I change the root localhost in the public address of the server in order to generate it from the client?Thanks
0 Likes 0 ·
Greg avatar image Greg mfiorentino commented ·

In your developer dashboard, under App settings -> Site URL/CORS you need to have the url you are making the call from

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community