Using the documentation:
https://docs.clover.com/docs/ecommerce-accepting-payments
I have generated an OAUTH token and a idempotency key but I still get a 401 unauthorized error in the sandbox env, here is the code I am testing out https://pastebin.com/EMD8DcPS
I am not sure what I am doing wrong, are my keys generated incorrectly somehow ?
Even the CURL example shown in the documentation doesnt work with the keys I am using...So I am not sure where I am going wrong.