Hello, I'm having an issue with ecommerce api.
I'm developing a custom website store for my client using clover, it's not an app.
First, I'm creating an order with POST v1/orders and it works perfectly, I'm storing the order's id and then I try to pay for that order with a credit card source and I'm getting error 401. I'm using nodejs as backend. But the most stranger thing is that if I use Postman or clover's api doc's simulator using the same credentials it works perfectly.
I've created API tokens credentials on my sandbox account for Iframe integration, public token on frontend and private token as authorization bearer token
Endpoint used: https://scl-sandbox.dev.clover.com/v1/orders/orderId/pay
Can you please help me with this? I need to finish it asap
Thank you!