mollie / mollie-api-node

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

Refund not working in Test mode #296

Closed ghost closed 1 year ago

ghost commented 1 year ago

When I try to make a refund in Test mode I get the following error

{"status":404,"title":"Not Found","detail":"Payment tr_Zukrw4rcwH exists, but the wrong mode is used. Try switching live / test API keys.","_links":{"documentation":{"href":"https://docs.mollie.com/overview/handling-errors","type":"text/html"}}}

Pimm commented 1 year ago

It sounds like you are trying to create a test refund for a live payment. You can only create test refunds for test payments.

Are you currently using an API key or an access token?

ghost commented 1 year ago

Dear Pimm, My mistake. Thank you for your quick reply. Kind regards, Guy