Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel order endpoint testmode parameter not accepted #147

Closed
jamesjjk opened this issue May 19, 2020 · 4 comments
Closed

Cancel order endpoint testmode parameter not accepted #147

jamesjjk opened this issue May 19, 2020 · 4 comments

Comments

@jamesjjk
Copy link

When calling orders.cancel([id], { testmode: true }). it is not accepted by the api there seems to be an issue with calling the delete request with a parameter, it seems it only accepts a form element.

@Pimm
Copy link
Collaborator

Pimm commented May 20, 2020

Hi, thanks for creating this issue.

Are you using Mollie Connect/OAuth?
What is the error that you get?

@jamesjjk
Copy link
Author

@Pimm Correct using Mollie Connect.
As we written our own library to patch some of the problems, I currently do not have the exact error, but in principal it gives an error that the Order exists but the mode is wrong. I believe the testmode parameter is not being sent as a x-form header and encoded parameter but instead as a query parameter.

@Pimm
Copy link
Collaborator

Pimm commented May 21, 2020

Could you try this on the new beta version?
npm install @mollie/api-client@beta

Regarding the library that you are using in-house: I would very much like to improve this library to the point where there is no more need for a third-party alternative. Would you be open to getting in touch so we can discuss this further?

@Pimm
Copy link
Collaborator

Pimm commented Aug 19, 2020

This should be fixed in the current version of the library. Please create a new issue if you have reason to believe otherwise.

@Pimm Pimm closed this as completed Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants