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

composer require adyen/php-api-library pulling a different version of code than the specified version in the doc #511

Closed
kkhs2 opened this issue Jun 20, 2023 · 3 comments

Comments

@kkhs2
Copy link

kkhs2 commented Jun 20, 2023

I'm trying to implement a manual capture and the Adyen support team recommended me to use the following PHP class in order to facilitate this:

https://github.com/Adyen/adyen-php-api-library/blob/41a1bf2da795e0a447b7e703a6e2d75a2b22be5b/src/Adyen/Service/Checkout/ModificationsApi.php

According to the Github page the ModificationsApi.php file is located in adyen-php-api-library/src/Adyen/Service/Checkout, but from doing a composer require adyen/php-api-library as suggested in the README.md, I do not see such file or such directory.

The adyen PHP library version in my codebase is 14.0.1 after running composer require adyen/php-api-library, it looks as though that this is possibly pulling another version of the library which is a different version to the one specified in https://github.com/Adyen/adyen-php-api-library/

Expected behavior
When doing a composer require adyen/php-api-library, the expected behaviour is pulling the same directories and files as per the library here: https://github.com/Adyen/adyen-php-api-library

@wboereboom
Copy link
Contributor

Hi @kkhs2 ,

Thank you for raising this issue.
The file you are trying to access was introduced at our v15 beta release.
We are currently working on getting this version to go live.
It is taking us somewhat longer as we are introducing models, which is a very big change from how the library worked in the past.

Feel free to experiment with the beta, however. We are very much open to any comments or feedback you might have.

I hope this clears up the confusion. I understand we could have documented this better, for which I apologise.

Kind Regards,
Wouter
Adyen

@kkhs2
Copy link
Author

kkhs2 commented Jun 27, 2023 via email

@jillingk
Copy link
Contributor

Hi @kkhs2,

You can use this class to achieve the same thing basically. Since we only used model based request/responses since the new beta version you have to work with arrays though. You can check the API-explorer to see which parameters you can submit in your array to a given endpoint.

Let us know if you run into anything else!

Best, Jilling
Adyen

@jillingk jillingk closed this as completed Jul 6, 2023
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

3 participants