mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

test orders are not retrieved #333

Closed madhums closed 8 months ago

madhums commented 8 months ago

I have couple of orders in test mode. While using a test api_key, I'd expect these orders to be retrieved, however, mollieClient.orders.page() doesn't return anything. When I switch the api_key to production one, I see results.

I also went ahead and tried with a curl command

curl -X GET https://api.mollie.com/v2/orders/ \
    -H "Authorization: Bearer test_123"

and still no orders listed. I'd expect to see orders that were made in test mode while using the test api_key.

Is this a desired behaviour or a bug? If this is a desired behaviour, it is not intuitive and it's confusing.

madhums commented 8 months ago

I was using the apiKey of the wrong website profile🙄