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

POS terminal methods #429

Closed
VictorMetzler opened this issue Dec 16, 2022 · 5 comments
Closed

POS terminal methods #429

VictorMetzler opened this issue Dec 16, 2022 · 5 comments

Comments

@VictorMetzler
Copy link

Hi guys, I do not know if this is the right spot do write but I've a question. Where do I find in this API the methods do talk with POS Terminals ? the only thing that I've found was this method ( getConnectedTerminals ). How do I, for example, send a payment to a terminal ?

I'm integreting my company with Adyen and my intent is to use 100% of your's API calls, but every step I take I discover that maybe it has not enough methods to suport everything, I really like to think otherwise because I prefere to use your methods than to make post/put/get calls directly to Adyens api.

If some one could help me I will be pleased.

@gjghendriks
Copy link

You can use the functions runTenderAsync or runTenderSync. But I think this underlies a bigger problem: there is no API explorer for the Cloudbased terminal API. Also the link in the readme of this project is broken.

@jillingk
Copy link
Contributor

Hi @VictorMetzler,

Apologies for the delayed answer! @gjghendriks is completely right, you can use our Cloud based terminal solution by calling the runTenderAsync and runTenderSync functions to send payment requests to your POS terminal. As of yet the php library unfortunately does not support the local terminal integration though. The naming is also a bit obsolete by now and in the other libraries we use a more descriptive naming, so we will be sure to change this is the future.

I must say that this library is indeed not fully up to speed with our API's, however we are working very hard to make this completely one on one through an automation process! We have done this for our Node and Java Library and currently are in the process for the .Net library. When that is done, this library is next on the chopping block so hopefully you will see a lot of improvement here rather soon!

In the meantime, @VictorMetzler, is there any other functionalities right now that you are missing? If so I'll try to see if I can allocate some manpower to fix this in a bit of a shorter timeline.

@gjghendriks you're also spot on with the API explorer for the terminal integration, this is something we would really want to see (and which benefits our automation process as well). Luckily this is coming very soon in the next year as well!

Happy holidays!

Best, Jilling
Adyen

@VictorMetzler
Copy link
Author

VictorMetzler commented Jan 18, 2023

Ok, so, trying to use runTenderAsync or runTenderSync and I cannot understand were to start with, can someone please provide an example ? or some sort of documentation ?

Found this:

https://github.com/Adyen/adyen-php-api-library/blob/7a569e6aa8fcd5a08aee37ca3c58b678e4f21fae/src/Adyen/Service/PosPayment.php

and this:

class TerminalCloudAPI extends \Adyen\Service\AbstractResource

@VictorMetzler
Copy link
Author

Please, any answer to the question above? it's been three weeks since the question . . .

@gjghendriks
Copy link

You would call it something like:

$adyen = (new Client())->getAdyenClient();
(new PosPayment($adyen))->runTenderAsync($request_body);

See https://docs.adyen.com/point-of-sale/basic-tapi-integration/make-a-payment on what to put in the request body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants